mirror of
https://github.com/element-hq/synapse.git
synced 2025-03-09 17:36:59 +00:00
dedup events: state events conflict with messages events. Do not consider them in deduplication
This commit is contained in:
parent
b099634ba1
commit
130cbdd7af
1 changed files with 9 additions and 7 deletions
|
@ -202,6 +202,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 (!isStateEvent) { // Do not consider state events
|
||||||
if (event.event_id && 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;
|
||||||
|
@ -209,6 +210,7 @@ angular.module('eventHandlerService', [])
|
||||||
else {
|
else {
|
||||||
eventMap[event.event_id] = 1;
|
eventMap[event.event_id] = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (event.type.indexOf('m.call.') === 0) {
|
if (event.type.indexOf('m.call.') === 0) {
|
||||||
handleCallEvent(event, isLiveEvent);
|
handleCallEvent(event, isLiveEvent);
|
||||||
|
|
Loading…
Add table
Reference in a new issue