Actually access state_key when getting target invite names...

This commit is contained in:
Kegan Dougal 2015-07-20 13:30:01 +01:00
parent 0baa2141fc
commit 19ee75577e
1 changed files with 1 additions and 1 deletions

View File

@ -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
) : "";