mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 01:40:07 +01:00
Convert MessageTable to kotlin.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user