More event sender checking
This commit is contained in:
parent
1c03eabadb
commit
d4ef04dc41
|
@ -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") {
|
||||||
|
|
Loading…
Reference in New Issue