Upgrade mautrix to 0.10.2 and use new BridgeStateEvents

This commit is contained in:
Sumner Evans
2021-08-04 14:03:54 -06:00
parent 4edd8eaa7b
commit 5a76b5bcdc
3 changed files with 14 additions and 13 deletions
+3
View File
@@ -129,5 +129,8 @@ class TelegramBridge(Bridge):
def is_bridge_ghost(self, user_id: UserID) -> bool:
return bool(Puppet.get_id_from_mxid(user_id))
async def count_logged_in_users(self) -> int:
return len([user for user in User.by_tgid.values() if user.tgid])
TelegramBridge().run()