More event sender checking

This commit is contained in:
David Baker 2015-07-03 16:55:18 +01:00
parent 1c03eabadb
commit d4ef04dc41

View File

@ -25,7 +25,7 @@ var dis = require("../../../../src/dispatcher");
var NotifierView = { var NotifierView = {
notificationMessageForEvent: function(ev) { notificationMessageForEvent: function(ev) {
var senderDisplayName = ev.sender.name; var senderDisplayName = ev.sender ? ev.sender.name : '';
var message = null; var message = null;
if (ev.event.type === "m.room.message") { if (ev.event.type === "m.room.message") {