mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-22 20:18:36 +00:00
Write in call link root key from storage service.
This commit is contained in:
committed by
Greyson Parrelli
parent
bfa5703aaa
commit
e28b3d52c6
@@ -244,11 +244,20 @@ class CallLinkTable(context: Context, databaseHelper: SignalDatabase) : Database
|
||||
.values(
|
||||
DELETION_TIMESTAMP to deletionTimestamp,
|
||||
ADMIN_KEY to null,
|
||||
ROOT_KEY to callLinkRootKey.keyBytes,
|
||||
REVOKED to true
|
||||
)
|
||||
.where("$ROOM_ID = ?", callLink.roomId.serialize())
|
||||
.run()
|
||||
} else 0
|
||||
} else {
|
||||
writableDatabase.update(TABLE_NAME)
|
||||
.values(
|
||||
ADMIN_KEY to adminPassKey,
|
||||
ROOT_KEY to callLinkRootKey.keyBytes
|
||||
)
|
||||
.where("$ROOM_ID = ?", callLink.roomId.serialize())
|
||||
.run()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user