mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 13:24:57 -04:00
Remove events.rooms[room_id] entirely from event-handler-service.
Everything now uses modelService, but there are still one or two minor teething problems to fix.
This commit is contained in:
parent
6bc1dc4020
commit
fd535183ee
4 changed files with 59 additions and 232 deletions
|
@ -148,6 +148,17 @@ angular.module('modelService', [])
|
|||
|
||||
getRooms: function() {
|
||||
return rooms;
|
||||
},
|
||||
|
||||
/**
|
||||
* 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 room = this.getRoom(room_id);
|
||||
return room.current_room_state.members[user_id];
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue