Merge pull request #1134 from emily-keller/develop

Message posted to Tavern containing banned words does not disappear
This commit is contained in:
Phillip Thelen 2019-05-15 15:01:17 +02:00 committed by GitHub
commit bd0632b624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -294,11 +294,11 @@ class ChatListFragment : BaseFragment(), SwipeRefreshLayout.OnRefreshListener {
private fun sendChatMessage(chatText: String) {
groupId.notNull {id ->
socialRepository.postGroupChat(id, chatText).subscribe(Consumer {
socialRepository.postGroupChat(id, chatText).subscribe({
recyclerView?.scrollToPosition(0)
}, RxErrorHandler.handleEmptyError())
}, { throwable ->
chatEditText.setText(chatText)
RxErrorHandler.reportError(throwable)})
}
}
}