mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-06-28 01:55:45 +01:00
Fix CallTable null check.
This commit is contained in:
@@ -1346,7 +1346,7 @@ class CallTable(context: Context, databaseHelper: SignalDatabase) : DatabaseTabl
|
||||
writableDatabase.withinTransaction { db ->
|
||||
val messageIds: List<Long> = db.select(MESSAGE_ID)
|
||||
.from(TABLE_NAME)
|
||||
.where("$EVENT = ? AND $MESSAGE_ID != NULL", Event.serialize(Event.RINGING))
|
||||
.where("$EVENT = ? AND $MESSAGE_ID IS NOT NULL", Event.serialize(Event.RINGING))
|
||||
.run()
|
||||
.readToList { it.requireLong(MESSAGE_ID) }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user