mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 13:54:58 -04:00
Make recents[controller/filter/html] use modelService.
This breaks functionality whilst both events.rooms and modelService are in use.
This commit is contained in:
parent
53da1099d1
commit
6bc1dc4020
5 changed files with 66 additions and 25 deletions
|
@ -100,9 +100,15 @@ angular.module('modelService', [])
|
|||
|
||||
storeStateEvent: function storeState(event) {
|
||||
this.state_events[event.type + event.state_key] = event;
|
||||
if (event.type === "m.room.member") {
|
||||
this.members[event.state_key] = event;
|
||||
}
|
||||
},
|
||||
|
||||
storeStateEvents: function storeState(events) {
|
||||
if (!events) {
|
||||
return;
|
||||
}
|
||||
for (var i=0; i<events.length; i++) {
|
||||
this.storeStateEvent(events[i]);
|
||||
}
|
||||
|
@ -138,6 +144,10 @@ angular.module('modelService', [])
|
|||
rooms[roomId] = new Room(roomId);
|
||||
}
|
||||
return rooms[roomId];
|
||||
},
|
||||
|
||||
getRooms: function() {
|
||||
return rooms;
|
||||
}
|
||||
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue