Skip to content
Snippets Groups Projects
Commit 177058b6 authored by Tulir Asokan's avatar Tulir Asokan :cat2:
Browse files

Fix cleaning up old rooms and update mautrix-python

parent 7702898b
Branches unpuppet
No related tags found
No related merge requests found
Pipeline #2820 passed
......@@ -93,7 +93,12 @@ class Puppet(DBPuppet, BasePuppet):
@classmethod
def get_id_from_mxid(cls, mxid: UserID) -> Optional[int]:
return cls.mxid_template.parse(mxid)
user_id = cls.mxid_template.parse(mxid)
# Legacy user IDs had phone numbers, which are too big for the new database,
# so filter those out here.
if isinstance(user_id, int) and user_id < 2**31:
return user_id
return None
@classmethod
def get_mxid_from_id(cls, mid: int) -> UserID:
......
......@@ -4,7 +4,7 @@ commonmark>=0.8,<0.10
aiohttp>=3,<4
yarl>=1,<2
attrs>=19.1
mautrix>=0.9,<0.10
mautrix>=0.9.2,<0.10
asyncpg>=0.20,<0.23
pillow>=4,<9
qrcode>=6,<7
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment