Message posted to Tavern containing banned words does not disappear

When a person posts text containing a banned word to the tavern, a warning message appears and the message disappears. Now, the message is restored when the warning appears, so that the user can modify it and remove the banned word.
This commit is contained in:
emily-keller 2019-04-29 12:18:16 -07:00
parent dd92220e41
commit a27a1ffab6

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)})
}
}
}