Write in call link root key from storage service.

This commit is contained in:
Alex Hart 2024-10-11 15:32:54 -03:00 committed by Greyson Parrelli
parent bfa5703aaa
commit e28b3d52c6

View file

@ -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()
}
}
}
}