Fix instances of event.sender being read for just the userId - this field may not be set in time
This commit is contained in:
@@ -328,7 +328,7 @@ export const Notifier = {
|
||||
|
||||
onEvent: function(ev: MatrixEvent) {
|
||||
if (!this.isSyncing) return; // don't alert for any messages initially
|
||||
if (ev.sender && ev.sender.userId === MatrixClientPeg.get().credentials.userId) return;
|
||||
if (ev.getSender() === MatrixClientPeg.get().credentials.userId) return;
|
||||
|
||||
MatrixClientPeg.get().decryptEventIfNeeded(ev);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user