mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
BF: temp workaround while /initialSync on a particular room is not available
initRoom on a new room is not called. Call it for any received events
This commit is contained in:
parent
a059ca6915
commit
8b3ce85183
@ -236,6 +236,11 @@ angular.module('eventHandlerService', [])
|
|||||||
TOPIC_EVENT: TOPIC_EVENT,
|
TOPIC_EVENT: TOPIC_EVENT,
|
||||||
|
|
||||||
handleEvent: function(event, isLiveEvent, isStateEvent) {
|
handleEvent: function(event, isLiveEvent, isStateEvent) {
|
||||||
|
|
||||||
|
// FIXME: /initialSync on a particular room is not yet available
|
||||||
|
// So initRoom on a new room is not called. Make sure the room data is initialised here
|
||||||
|
initRoom(event.room_id);
|
||||||
|
|
||||||
// Avoid duplicated events
|
// Avoid duplicated events
|
||||||
// Needed for rooms where initialSync has not been done.
|
// Needed for rooms where initialSync has not been done.
|
||||||
// In this case, we do not know where to start pagination. So, it starts from the END
|
// In this case, we do not know where to start pagination. So, it starts from the END
|
||||||
|
Loading…
Reference in New Issue
Block a user