mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-06-19 18:24:08 -04:00
Reenabled handle of room states events in initialSync but do not add them to the displayed messages in the room page.
Show the m.room.member events only when they come from room.messages (from initialSync of pagination) not from room.state.
This commit is contained in:
parent
c2afc6cd0a
commit
b099634ba1
2 changed files with 13 additions and 13 deletions
|
@ -113,15 +113,12 @@ angular.module('eventStreamService', [])
|
|||
for (var i = 0; i < rooms.length; ++i) {
|
||||
var room = rooms[i];
|
||||
|
||||
// console.log("got room: " + room.room_id);
|
||||
if ("state" in room) {
|
||||
//eventHandlerService.handleEvents(room.state, false);
|
||||
}
|
||||
|
||||
if ("messages" in room) {
|
||||
eventHandlerService.handleRoomMessages(room.room_id, room.messages, false);
|
||||
|
||||
console.log(room.messages.start + " - " + room.messages.end);
|
||||
}
|
||||
|
||||
if ("state" in room) {
|
||||
eventHandlerService.handleEvents(room.state, false, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue