Skip to content

Commit 1c03eab

Browse files
committed
Not all events have a sender
1 parent b8f9cb4 commit 1c03eab

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/controllers/organisms/Notifier.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ module.exports = {
3232

3333
onRoomTimeline: function(ev, room, toStartOfTimeline) {
3434
if (toStartOfTimeline) return;
35-
if (ev.sender.userId == MatrixClientPeg.get().credentials.userId) return;
35+
if (ev.sender && ev.sender.userId == MatrixClientPeg.get().credentials.userId) return;
3636

3737
var enabled = global.localStorage.getItem('notifications_enabled');
3838
if (enabled === 'false') return;

0 commit comments

Comments
 (0)