Update mautrix-python to fix bugs

This commit is contained in:
Tulir Asokan 2020-08-23 14:25:29 +03:00
parent c614f8c8ca
commit 9d3a4b16bd
3 changed files with 7 additions and 2 deletions

View file

@ -304,7 +304,7 @@ class Client:
mxid = await new_client.whoami() mxid = await new_client.whoami()
if mxid != self.id: if mxid != self.id:
raise ValueError(f"MXID mismatch: {mxid}") raise ValueError(f"MXID mismatch: {mxid}")
new_client.sync_store = self.db_instance new_client.sync_store = SyncStoreProxy(self.db_instance)
self.stop_sync() self.stop_sync()
self.client = new_client self.client = new_client
self.db_instance.homeserver = homeserver self.db_instance.homeserver = homeserver

View file

@ -33,3 +33,8 @@ def on(var: Union[EventType, InternalEventType, EventHandler]
return func return func
return decorator if isinstance(var, (EventType, InternalEventType)) else decorator(var) return decorator if isinstance(var, (EventType, InternalEventType)) else decorator(var)
def off(func: EventHandler) -> EventHandler:
func.__mb_event_handler__ = False
return func

View file

@ -1,4 +1,4 @@
mautrix==0.6.0rc4 mautrix==0.7.0rc3
aiohttp>=3,<4 aiohttp>=3,<4
SQLAlchemy>=1,<2 SQLAlchemy>=1,<2
alembic>=1,<2 alembic>=1,<2