mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 04:58:45 +00:00
Fix database revocation for call links.
This commit is contained in:
committed by
Greyson Parrelli
parent
78e36b85d4
commit
879e05148b
@@ -240,8 +240,8 @@ class CallLinkTable(context: Context, databaseHelper: SignalDatabase) : Database
|
||||
) {
|
||||
writableDatabase.withinTransaction { db ->
|
||||
db.update(TABLE_NAME)
|
||||
.values("$REVOKED" to true)
|
||||
.where("$ROOM_ID", roomId)
|
||||
.values(REVOKED to true)
|
||||
.where("$ROOM_ID = ?", roomId.serialize())
|
||||
.run()
|
||||
|
||||
SignalDatabase.calls.updateAdHocCallEventDeletionTimestamps()
|
||||
@@ -257,7 +257,7 @@ class CallLinkTable(context: Context, databaseHelper: SignalDatabase) : Database
|
||||
) {
|
||||
writableDatabase.withinTransaction { db ->
|
||||
db.delete(TABLE_NAME)
|
||||
.where("$ROOM_ID", roomId)
|
||||
.where("$ROOM_ID = ?", roomId.serialize())
|
||||
.run()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user