mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-04 08:04:51 -04:00
Filter room where the user has been banned
This commit is contained in:
parent
8aa4b7bf7f
commit
b0483cd47d
2 changed files with 29 additions and 5 deletions
|
@ -398,6 +398,22 @@ angular.module('eventHandlerService', [])
|
|||
}
|
||||
|
||||
return memberCount;
|
||||
},
|
||||
|
||||
/**
|
||||
* Get the member object of a room member
|
||||
* @param {String} room_id the room id
|
||||
* @param {String} user_id the id of the user
|
||||
* @returns {undefined | Object} the member object of this user in this room if he is part of the room
|
||||
*/
|
||||
getMember: function(room_id, user_id) {
|
||||
var member;
|
||||
|
||||
var room = $rootScope.events.rooms[room_id];
|
||||
if (room) {
|
||||
member = room.members[user_id];
|
||||
}
|
||||
return member;
|
||||
}
|
||||
};
|
||||
}]);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue