talk-android/app/src/main/java/com/nextcloud/talk/chat/data
Marcel Hibbe 9a14764321
do not try to pull chat messages when offline or paused
Otherwise, it resulted in a lot of flickering because _lastCommonReadFlow was emitted every 500ms. And anyway if we know we are offline or paused then it doesn't make sense to execute the sync method.

chain which caused the flickering was:
updateUiForLastCommonRead (_lastCommonReadFlow) -> updateReadStatusOfAllMessages - notifyDataSetChanged -> onBindViewHolder -> IncomingLinkPreviewMessageViewHolder

Signed-off-by: Marcel Hibbe <dev@mhibbe.de>
2024-09-11 17:05:07 +02:00
..
io update to kotlin 2.0 / use ksp where possible 2024-06-17 17:41:03 +02:00
model fix 2024-08-15 11:29:38 -05:00
network do not try to pull chat messages when offline or paused 2024-09-11 17:05:07 +02:00
ChatMessageRepository.kt Follow up bug fixes for offline support 2024-09-04 10:14:51 +02:00