Convert MessageTable to kotlin.

This commit is contained in:
Greyson Parrelli
2023-03-11 15:35:14 -05:00
parent c2a76c4313
commit 90cc672c37
19 changed files with 5245 additions and 5682 deletions

View File

@@ -33,7 +33,7 @@ object NotificationStateProvider {
}
MessageTable.mmsReaderFor(unreadMessages).use { reader ->
var record: MessageRecord? = reader.next
var record: MessageRecord? = reader.getNext()
while (record != null) {
val threadRecipient: Recipient? = SignalDatabase.threads.getRecipientForThreadId(record.threadId)
if (threadRecipient != null) {
@@ -73,7 +73,7 @@ object NotificationStateProvider {
)
}
try {
record = reader.next
record = reader.getNext()
} catch (e: IllegalStateException) {
// XXX Weird SQLCipher bug that's being investigated
record = null