mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-23 04:28:35 +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(
|
.values(
|
||||||
DELETION_TIMESTAMP to deletionTimestamp,
|
DELETION_TIMESTAMP to deletionTimestamp,
|
||||||
ADMIN_KEY to null,
|
ADMIN_KEY to null,
|
||||||
|
ROOT_KEY to callLinkRootKey.keyBytes,
|
||||||
REVOKED to true
|
REVOKED to true
|
||||||
)
|
)
|
||||||
.where("$ROOM_ID = ?", callLink.roomId.serialize())
|
.where("$ROOM_ID = ?", callLink.roomId.serialize())
|
||||||
.run()
|
.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