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

@ -4,3 +4,5 @@ async def sync_callback(response, bot):
SYNC_TOKEN = response.next_batch
bot.sync_token = SYNC_TOKEN
bot.accept_pending_invites()