From 78087617d1e7d6d976bbd12e2f55213199c9eb1b Mon Sep 17 00:00:00 2001 From: Emmanuel ROHEE Date: Wed, 3 Sep 2014 19:29:21 +0200 Subject: [PATCH] Fixed used of state_key instead of user_id in member events. Needed to split into 2 conditional spans for grammar reason --- webclient/room/room.html | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/webclient/room/room.html b/webclient/room/room.html index e29f511ecf..4b6a00bffa 100644 --- a/webclient/room/room.html +++ b/webclient/room/room.html @@ -48,11 +48,14 @@
- + + {{ members[msg.state_key].displayname || msg.state_key }} + {{ {"join": "joined", "leave": "left"}[msg.content.membership] }} + + {{ members[msg.user_id].displayname || msg.user_id }} - {{ {"join": "joined", "leave": "left", "invite": "invited", "ban": "banned"}[msg.content.membership] }} - {{ (msg.content.membership === "invite" || msg.content.membership === "ban") ? (msg.state_key || '') : '' }} - + {{ {"invite": "invited", "ban": "banned"}[msg.content.membership] }} + {{ msg.state_key }}