Add remaining non-group update messages for backup.

This commit is contained in:
Clark
2023-12-21 12:13:13 -05:00
committed by Clark Chen
parent 0200430346
commit d74b302edb
11 changed files with 442 additions and 15 deletions

View File

@@ -49,16 +49,16 @@ class CallTable(context: Context, databaseHelper: SignalDatabase) : DatabaseTabl
private val TIME_WINDOW = TimeUnit.HOURS.toMillis(4)
const val TABLE_NAME = "call"
private const val ID = "_id"
private const val CALL_ID = "call_id"
private const val MESSAGE_ID = "message_id"
const val ID = "_id"
const val CALL_ID = "call_id"
const val MESSAGE_ID = "message_id"
const val PEER = "peer"
const val TYPE = "type"
private const val DIRECTION = "direction"
const val DIRECTION = "direction"
const val EVENT = "event"
const val TIMESTAMP = "timestamp"
private const val RINGER = "ringer"
private const val DELETION_TIMESTAMP = "deletion_timestamp"
const val RINGER = "ringer"
const val DELETION_TIMESTAMP = "deletion_timestamp"
//language=sql
val CREATE_TABLE = """

View File

@@ -413,7 +413,7 @@ open class MessageTable(context: Context?, databaseHelper: SignalDatabase) : Dat
ORDER BY $DATE_RECEIVED DESC LIMIT 1
"""
private val IS_CALL_TYPE_CLAUSE = """(
const val IS_CALL_TYPE_CLAUSE = """(
($TYPE = ${MessageTypes.INCOMING_AUDIO_CALL_TYPE})
OR
($TYPE = ${MessageTypes.INCOMING_VIDEO_CALL_TYPE})