Commit 7db616f2 authored by Lucio Maciel's avatar Lucio Maciel

More crash fixes

parent 875baa8a
...@@ -1169,6 +1169,7 @@ class ChatRoomPresenter @Inject constructor( ...@@ -1169,6 +1169,7 @@ class ChatRoomPresenter @Inject constructor(
} }
private fun processTypingStatus(typingStatus: Pair<String, Boolean>) { private fun processTypingStatus(typingStatus: Pair<String, Boolean>) {
synchronized(typingStatusList) {
if (typingStatus.first != currentLoggedUsername) { if (typingStatus.first != currentLoggedUsername) {
if (!typingStatusList.any { username -> username == typingStatus.first }) { if (!typingStatusList.any { username -> username == typingStatus.first }) {
if (typingStatus.second) { if (typingStatus.second) {
...@@ -1190,6 +1191,7 @@ class ChatRoomPresenter @Inject constructor( ...@@ -1190,6 +1191,7 @@ class ChatRoomPresenter @Inject constructor(
} }
} }
} }
}
private fun unsubscribeTypingStatus() { private fun unsubscribeTypingStatus() {
typingStatusSubscriptionId?.let { typingStatusSubscriptionId?.let {
......
...@@ -594,7 +594,11 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR ...@@ -594,7 +594,11 @@ class ChatRoomFragment : Fragment(), ChatRoomView, EmojiKeyboardListener, EmojiR
} }
} }
override fun showGenericErrorMessage() = showMessage(getString(R.string.msg_generic_error)) override fun showGenericErrorMessage(){
ui {
showMessage(getString(R.string.msg_generic_error))
}
}
override fun populatePeopleSuggestions(members: List<PeopleSuggestionUiModel>) { override fun populatePeopleSuggestions(members: List<PeopleSuggestionUiModel>) {
ui { ui {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment