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:
Emmanuel ROHEE 2014-09-10 14:36:30 +02:00
parent c2afc6cd0a
commit b099634ba1
2 changed files with 13 additions and 13 deletions

View file

@ -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);
}
}