hide events with no text equiv

This commit is contained in:
Matthew Hodgson 2015-07-18 19:06:36 +01:00
parent db94a93fde
commit c83ff1c623

View File

@ -32,7 +32,7 @@ function textForMemberEvent(ev) {
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
return targetName + " joined the room.";
}
return 'Unrecognised join event';
return '';
case 'leave':
if (ev.getSender() === ev.getStateKey()) {
return targetName + " left the room.";