Ignore to-device decryption in the room list store

This avoids meaningless warnings about "unknown" rooms.
pull/21833/head
J. Ryan Stinnett 2021-03-10 12:11:48 +00:00
parent 98338f1505
commit 0583ea6a25
1 changed files with 3 additions and 0 deletions

View File

@ -302,6 +302,9 @@ export class RoomListStoreClass extends AsyncStoreWithClient<IState> {
} else if (payload.action === 'MatrixActions.Event.decrypted') {
const eventPayload = (<any>payload); // TODO: Type out the dispatcher types
const roomId = eventPayload.event.getRoomId();
if (!roomId) {
return;
}
const room = this.matrixClient.getRoom(roomId);
if (!room) {
console.warn(`Event ${eventPayload.event.getId()} was decrypted in an unknown room ${roomId}`);