Upgrade mautrix to 0.10.2 and use new BridgeStateEvents
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user