mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-12-24 15:49:25 -05:00
fix a case of rampaging SYWEB-78
This commit is contained in:
parent
a7420ff2b5
commit
5aa13b9084
@ -68,6 +68,9 @@ angular.module('matrixFilter', [])
|
|||||||
else {
|
else {
|
||||||
// The other member may be in the invite list, get all invited users
|
// The other member may be in the invite list, get all invited users
|
||||||
var invitedUserIDs = [];
|
var invitedUserIDs = [];
|
||||||
|
|
||||||
|
// XXX: *SURELY* we shouldn't have to trawl through the whole messages list to
|
||||||
|
// 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.membership) {
|
||||||
@ -91,6 +94,8 @@ angular.module('matrixFilter', [])
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!otherUserId) otherUserId = user_id; // name the room after ourselves as we're the only person there!
|
||||||
|
|
||||||
// Try to resolve his displayname in presence global data
|
// Try to resolve his displayname in presence global data
|
||||||
if (otherUserId in $rootScope.presence) {
|
if (otherUserId in $rootScope.presence) {
|
||||||
roomName = $rootScope.presence[otherUserId].content.displayname;
|
roomName = $rootScope.presence[otherUserId].content.displayname;
|
||||||
|
Loading…
Reference in New Issue
Block a user