mirror of
https://github.com/element-hq/synapse
synced 2024-09-01 16:50:20 +00:00
Presence events do not have event id. Do not discard them
This commit is contained in:
parent
b63dd9506e
commit
c2afc6cd0a
1 changed files with 2 additions and 2 deletions
|
@ -199,7 +199,7 @@ angular.module('eventHandlerService', [])
|
||||||
// AND from the event stream.
|
// AND from the event stream.
|
||||||
// FIXME: This workaround should be no more required when /initialSync on a particular room
|
// FIXME: This workaround should be no more required when /initialSync on a particular room
|
||||||
// will be available (as opposite to the global /initialSync done at startup)
|
// will be available (as opposite to the global /initialSync done at startup)
|
||||||
if (eventMap[event.event_id]) {
|
if (event.event_id && eventMap[event.event_id]) {
|
||||||
console.log("discarding duplicate event: " + JSON.stringify(event, undefined, 4));
|
console.log("discarding duplicate event: " + JSON.stringify(event, undefined, 4));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
@ -258,7 +258,7 @@ angular.module('eventHandlerService', [])
|
||||||
|
|
||||||
// Handle messages from /initialSync or /messages
|
// Handle messages from /initialSync or /messages
|
||||||
handleRoomMessages: function(room_id, messages, isLiveEvents) {
|
handleRoomMessages: function(room_id, messages, isLiveEvents) {
|
||||||
this.handleEvents(messages.chunk);
|
this.handleEvents(messages.chunk, isLiveEvents);
|
||||||
|
|
||||||
// Store how far back we've paginated
|
// Store how far back we've paginated
|
||||||
// This assumes the paginations requests are contiguous and in reverse chronological order
|
// This assumes the paginations requests are contiguous and in reverse chronological order
|
||||||
|
|
Loading…
Reference in a new issue