mirror of
https://github.com/element-hq/synapse.git
synced 2024-11-26 11:36:03 +03:00
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)
This commit is contained in:
parent
5aa13b9084
commit
284fac379c
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ angular.module('matrixFilter', [])
|
||||||
// find invite - surely the other user should be in room.members with state invited? :/ --Matthew
|
// find invite - surely the other user should be in room.members with state invited? :/ --Matthew
|
||||||
for (var i in room.messages) {
|
for (var i in room.messages) {
|
||||||
var message = room.messages[i];
|
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
|
// Filter out the current user
|
||||||
var member_id = message.state_key;
|
var member_id = message.state_key;
|
||||||
if (member_id === user_id) {
|
if (member_id === user_id) {
|
||||||
|
|
Loading…
Reference in a new issue