mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
some more typing
This commit is contained in:
parent
c47bdd5715
commit
7d3e3b992b
@ -60,7 +60,7 @@ export abstract class IncomingRoomKey extends RoomKey {
|
|||||||
|
|
||||||
async write(loader: KeyLoader, txn: Transaction): Promise<boolean> {
|
async write(loader: KeyLoader, txn: Transaction): Promise<boolean> {
|
||||||
// we checked already and we had a better session in storage, so don't write
|
// we checked already and we had a better session in storage, so don't write
|
||||||
let pickledSession;
|
let pickledSession: string | undefined;
|
||||||
if (this.isBetter === undefined) {
|
if (this.isBetter === undefined) {
|
||||||
// if this key wasn't used to decrypt any messages in the same sync,
|
// if this key wasn't used to decrypt any messages in the same sync,
|
||||||
// we haven't checked if this is the best key yet,
|
// we haven't checked if this is the best key yet,
|
||||||
|
Loading…
Reference in New Issue
Block a user