summary refs log tree commit diff
path: root/webclient/components
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-23 17:27:17 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-23 17:31:13 +0100
commit284fac379c822bd87f9cc9893ba18eaae082cae4 (patch)
tree2b336ec964c156b7c8b21dd322e3e452ff5cf4ef /webclient/components
parentfix a case of rampaging SYWEB-78 (diff)
downloadsynapse-284fac379c822bd87f9cc9893ba18eaae082cae4.tar.xz
patch over another scenario whe we leak room IDs. i have *zero* idea why or where the webclient is overriding message.membership to be "join" though, when it comes down the events pipe as "invite" (which was causing this failure mode)
Diffstat (limited to 'webclient/components')
-rw-r--r--webclient/components/matrix/matrix-filter.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/webclient/components/matrix/matrix-filter.js b/webclient/components/matrix/matrix-filter.js
index 8e667d65fb..63ef02b705 100644
--- a/webclient/components/matrix/matrix-filter.js
+++ b/webclient/components/matrix/matrix-filter.js
@@ -73,7 +73,7 @@ angular.module('matrixFilter', [])
                         // find invite - surely the other user should be in room.members with state invited? :/ --Matthew
                         for (var i in room.messages) {
                             var message = room.messages[i];
-                            if ("m.room.member" === message.type && "invite" === message.membership) {
+                            if ("m.room.member" === message.type && "invite" === message.content.membership) {
                                 // Filter out the current user
                                 var member_id = message.state_key;
                                 if (member_id === user_id) {