Don't set presence when /syncing custom puppets
This commit is contained in:
@@ -169,7 +169,8 @@ class Puppet:
|
|||||||
self.log.debug(f"Starting syncer for {custom_mxid} with sync filter {filter_id}.")
|
self.log.debug(f"Starting syncer for {custom_mxid} with sync filter {filter_id}.")
|
||||||
while access_token_at_start == self.access_token:
|
while access_token_at_start == self.access_token:
|
||||||
try:
|
try:
|
||||||
sync_resp = await self.intent.client.sync(filter=filter_id, since=next_batch)
|
sync_resp = await self.intent.client.sync(filter=filter_id, since=next_batch,
|
||||||
|
set_presence="offline")
|
||||||
errors = 0
|
errors = 0
|
||||||
if next_batch is not None:
|
if next_batch is not None:
|
||||||
presence = sync_resp.get("presence", {}).get("events", [])
|
presence = sync_resp.get("presence", {}).get("events", [])
|
||||||
|
|||||||
Reference in New Issue
Block a user