Update mautrix-python to fix bugs
This commit is contained in:
parent
c614f8c8ca
commit
9d3a4b16bd
3 changed files with 7 additions and 2 deletions
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue