Skip to content

Commit

Permalink
Further improvements to e2ee logging (#2900)
Browse files Browse the repository at this point in the history
A followup to #2884. In particular, it is not always the case that the
`sender_key` in a `m.room_key_withheld` message is the sender of that message.
  • Loading branch information
richvdh authored Nov 21, 2022
1 parent f3dc1c4 commit dd98d7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/crypto/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3269,9 +3269,9 @@ export class Crypto extends TypedEventEmitter<CryptoEvent, CryptoEventHandlerMap
}

logger.info(
`Got room key withheld event from ${event.getSender()} (${content.sender_key}) `
+ `for ${content.algorithm}/${content.room_id}/${content.session_id} `
+ `with reason ${content.code} (${content.reason})`,
`Got room key withheld event from ${event.getSender()} `
+ `for ${content.algorithm} session ${content.sender_key}|${content.session_id} `
+ `in room ${content.room_id} with code ${content.code} (${content.reason})`,
);

const alg = this.getRoomDecryptor(content.room_id, content.algorithm);
Expand Down

0 comments on commit dd98d7e

Please sign in to comment.