Protected against crash with unread counter that exceeds thread size.

This commit is contained in:
Cody Henthorne
2023-07-28 16:09:26 -04:00
parent cdce802b32
commit a54df29542
2 changed files with 4 additions and 2 deletions

View File

@@ -3285,6 +3285,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
}
threadIds.forEach {
threads.updateReadState(it)
threads.update(
threadId = it,
unarchive = false,