forked from mystiq/hydrogen-web
cleanup
This commit is contained in:
parent
fd498b3d24
commit
769feac73c
1 changed files with 1 additions and 1 deletions
|
@ -253,7 +253,7 @@ export class RoomEncryption {
|
|||
|
||||
/** shares the encryption key for the next message if needed */
|
||||
async ensureMessageKeyIsShared(hsApi) {
|
||||
if (this._lastKeyPreShareTime && this._lastKeyPreShareTime.measure() < MIN_PRESHARE_INTERVAL) {
|
||||
if (this._lastKeyPreShareTime?.measure() < MIN_PRESHARE_INTERVAL) {
|
||||
return;
|
||||
}
|
||||
this._lastKeyPreShareTime = this._clock.createMeasure();
|
||||
|
|
Loading…
Reference in a new issue