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,
|
JoinResponse,
|
||||||
InviteEvent,
|
InviteEvent,
|
||||||
OlmEvent,
|
OlmEvent,
|
||||||
MegolmEvent
|
MegolmEvent,
|
||||||
)
|
)
|
||||||
|
|
||||||
from .test import test_callback
|
from .test import test_callback
|
||||||
|
|
|
@ -4,3 +4,5 @@ async def sync_callback(response, bot):
|
||||||
SYNC_TOKEN = response.next_batch
|
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