diff --git a/src/controllers/organisms/Notifier.js b/src/controllers/organisms/Notifier.js index 9c16d7ea..63e93778 100644 --- a/src/controllers/organisms/Notifier.js +++ b/src/controllers/organisms/Notifier.js @@ -32,7 +32,7 @@ module.exports = { onRoomTimeline: function(ev, room, toStartOfTimeline) { if (toStartOfTimeline) return; - if (ev.sender.userId == MatrixClientPeg.get().credentials.userId) return; + if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) return; var enabled = global.localStorage.getItem('notifications_enabled'); if (enabled === 'false') return;