From d4ef04dc414e69521b66ecdaaa98b67fd82ea8b5 Mon Sep 17 00:00:00 2001 From: David Baker Date: Fri, 3 Jul 2015 16:55:18 +0100 Subject: [PATCH] More event sender checking --- skins/base/views/organisms/Notifier.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/skins/base/views/organisms/Notifier.js b/skins/base/views/organisms/Notifier.js index 110c21e251..e7bf40e782 100644 --- a/skins/base/views/organisms/Notifier.js +++ b/skins/base/views/organisms/Notifier.js @@ -25,7 +25,7 @@ var dis = require("../../../../src/dispatcher"); var NotifierView = { notificationMessageForEvent: function(ev) { - var senderDisplayName = ev.sender.name; + var senderDisplayName = ev.sender ? ev.sender.name : ''; var message = null; if (ev.event.type === "m.room.message") {