mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-06 14:38:21 +00:00
hide events with no text equiv
This commit is contained in:
+1
-1
@@ -32,7 +32,7 @@ function textForMemberEvent(ev) {
|
|||||||
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
|
if (!ev.target) console.warn("Join message has no target! -- " + ev.getContent().state_key);
|
||||||
return targetName + " joined the room.";
|
return targetName + " joined the room.";
|
||||||
}
|
}
|
||||||
return 'Unrecognised join event';
|
return '';
|
||||||
case 'leave':
|
case 'leave':
|
||||||
if (ev.getSender() === ev.getStateKey()) {
|
if (ev.getSender() === ev.getStateKey()) {
|
||||||
return targetName + " left the room.";
|
return targetName + " left the room.";
|
||||||
|
|||||||
Reference in New Issue
Block a user