Write in call link root key from storage service.
This commit is contained in:
parent
bfa5703aaa
commit
e28b3d52c6
1 changed files with 10 additions and 1 deletions
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue