mirror of
https://github.com/oxen-io/session-android.git
synced 2024-11-25 02:55:23 +00:00
fix: maybe syncing read statuses are working now
This commit is contained in:
parent
df39194024
commit
df0bcf8bc5
@ -229,8 +229,10 @@ class BatchMessageReceiveJob(
|
||||
if (!openGroupID.isNullOrEmpty()) {
|
||||
Log.d("Loki-DBG", "new-lastSeen for: $openGroupID is $currentLastSeen")
|
||||
}
|
||||
if (newLastSeen > 0) {
|
||||
storage.markConversationAsRead(threadId, newLastSeen, force = true)
|
||||
storage.updateThread(threadId, true)
|
||||
}
|
||||
SSKEnvironment.shared.notificationManager.updateNotification(context, threadId)
|
||||
}
|
||||
|
||||
@ -241,8 +243,10 @@ class BatchMessageReceiveJob(
|
||||
}
|
||||
// await all thread processing
|
||||
deferredThreadMap.awaitAll()
|
||||
if (noThreadMessages.isNotEmpty()) {
|
||||
processMessages(NO_THREAD_MAPPING, noThreadMessages).await()
|
||||
}
|
||||
}
|
||||
if (failures.isEmpty()) {
|
||||
handleSuccess(dispatcherName)
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user