mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2025-01-19 00:31:39 +01:00
this can be const
This commit is contained in:
parent
6d8ec69a4d
commit
076f450ec7
@ -137,7 +137,7 @@ export class Decryption {
|
||||
* The key won't be persisted yet, you need to call RoomKey.write for that.
|
||||
*/
|
||||
roomKeysFromDeviceMessages(decryptionResults: DecryptionResult[], log: LogItem): IIncomingRoomKey[] {
|
||||
let keys: IIncomingRoomKey[] = [];
|
||||
const keys: IIncomingRoomKey[] = [];
|
||||
for (const dr of decryptionResults) {
|
||||
if (dr.event?.type !== "m.room_key" || dr.event.content?.algorithm !== MEGOLM_ALGORITHM) {
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user