Accept pending invites on sync
This commit is contained in:
parent
5ea32b2295
commit
e369b63baf
2 changed files with 4 additions and 2 deletions
|
@ -7,7 +7,7 @@ from nio import (
|
|||
JoinResponse,
|
||||
InviteEvent,
|
||||
OlmEvent,
|
||||
MegolmEvent
|
||||
MegolmEvent,
|
||||
)
|
||||
|
||||
from .test import test_callback
|
||||
|
|
|
@ -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()
|
Loading…
Reference in a new issue