fix to processExpiredMessages

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
This commit is contained in:
Marcel Hibbe 2024-08-09 11:08:50 +02:00
parent d18bd20bf1
commit a84e69b6bb
No known key found for this signature in database
GPG Key ID: C793F8B59F43CE7B
2 changed files with 3 additions and 1 deletions

View File

@ -804,6 +804,7 @@ class ChatActivity :
collapseSystemMessages() collapseSystemMessages()
} }
processExpiredMessages()
processCallStartedMessages(chatMessageList) processCallStartedMessages(chatMessageList)
adapter?.notifyDataSetChanged() adapter?.notifyDataSetChanged()
@ -823,6 +824,7 @@ class ChatActivity :
chatViewModel.getLastCommonReadFlow chatViewModel.getLastCommonReadFlow
.onEach { .onEach {
updateReadStatusOfAllMessages(it) updateReadStatusOfAllMessages(it)
processExpiredMessages()
} }
.collect() .collect()
} }

View File

@ -362,7 +362,7 @@ class OfflineFirstChatRepository @Inject constructor(
.blockingSingle() .blockingSingle()
return result return result
} catch (e: Exception) { } catch (e: Exception) {
Log.e(TAG, "some exception", e) Log.e(TAG, "Something went wrong when pulling chat messages", e)
} }
return null return null
} }