Browse Source

fix to processExpiredMessages

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
Marcel Hibbe 1 year ago
parent
commit
a84e69b6bb

+ 2 - 0
app/src/main/java/com/nextcloud/talk/chat/ChatActivity.kt

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

+ 1 - 1
app/src/main/java/com/nextcloud/talk/chat/data/network/OfflineFirstChatRepository.kt

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