mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 11:26:09 -04:00
When presence is enabled don't send over replication
This commit is contained in:
parent
7590e9fa28
commit
1e315017d3
2 changed files with 8 additions and 2 deletions
|
@ -54,8 +54,11 @@ class SlavedPresenceStore(BaseSlavedStore):
|
|||
|
||||
def stream_positions(self):
|
||||
result = super(SlavedPresenceStore, self).stream_positions()
|
||||
position = self._presence_id_gen.get_current_token()
|
||||
result["presence"] = position
|
||||
|
||||
if self.hs.config.use_presence:
|
||||
position = self._presence_id_gen.get_current_token()
|
||||
result["presence"] = position
|
||||
|
||||
return result
|
||||
|
||||
def process_replication_rows(self, stream_name, token, rows):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue