From 19ee75577ecb5aedbd21359fc84588fe391988cf Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Mon, 20 Jul 2015 13:30:01 +0100 Subject: [PATCH] Actually access state_key when getting target invite names... --- src/TextForEvent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TextForEvent.js b/src/TextForEvent.js index e302b647de..c8f2f71b11 100644 --- a/src/TextForEvent.js +++ b/src/TextForEvent.js @@ -2,7 +2,7 @@ function textForMemberEvent(ev) { // XXX: SYJS-16 var senderName = ev.sender ? ev.sender.name : ev.getSender(); - var targetName = ev.target ? ev.target.name : ev.getContent().state_key; + var targetName = ev.target ? ev.target.name : ev.getStateKey(); var reason = ev.getContent().reason ? ( " Reason: " + ev.getContent().reason ) : "";