Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
Signed-off-by: rapterjet2004 <[email protected]>
  • Loading branch information
rapterjet2004 committed Nov 12, 2024
1 parent e8ee512 commit 7b9f942
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,6 @@ class ChatActivity :
.onEach { pair ->
val lookIntoFuture = pair.first
var chatMessageList = pair.second

chatMessageList = handleSystemMessages(chatMessageList)

determinePreviousMessageIds(chatMessageList)
Expand Down Expand Up @@ -919,7 +918,9 @@ class ChatActivity :
chatViewModel.getGeneralUIFlow.onEach { key ->
when (key) {
NO_OFFLINE_MESSAGES_FOUND -> {
binding.offline.root.visibility = View.VISIBLE
if (networkMonitor.isOnline.first().not()) {
binding.offline.root.visibility = View.VISIBLE
}
}

else -> {}
Expand Down

0 comments on commit 7b9f942

Please sign in to comment.