Skip to content

Commit 2a6a67c

Browse files
committed
Inbound session creation counts as a received message
1 parent 37f0a9a commit 2a6a67c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/crypto/OlmDevice.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -509,6 +509,8 @@ OlmDevice.prototype.createInboundSession = async function(
509509
this._storeAccount(txn, account);
510510

511511
const payloadString = session.decrypt(messageType, ciphertext);
512+
// this counts as an received message
513+
session.set_last_received_message_ts(Date.now());
512514

513515
this._saveSession(theirDeviceIdentityKey, session, txn);
514516

0 commit comments

Comments
 (0)