Accept pending invites on sync

This commit is contained in:
Kumi 2023-05-01 15:04:01 +00:00
parent 5ea32b2295
commit e369b63baf
Signed by: kumi
GPG key ID: ECBCC9082395383F
2 changed files with 4 additions and 2 deletions

View file

@ -7,7 +7,7 @@ from nio import (
JoinResponse,
InviteEvent,
OlmEvent,
MegolmEvent
MegolmEvent,
)
from .test import test_callback

View file

@ -3,4 +3,6 @@ async def sync_callback(response, bot):
f"Sync response received (next batch: {response.next_batch})", "debug")
SYNC_TOKEN = response.next_batch
bot.sync_token = SYNC_TOKEN
bot.sync_token = SYNC_TOKEN
bot.accept_pending_invites()