mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-05-22 13:48:55 +00:00
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:
parent
dd92220e41
commit
a27a1ffab6
1 changed files with 4 additions and 4 deletions
|
|
@ -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)})
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue