Improve profile info syncing
This commit is contained in:
@@ -448,7 +448,7 @@ class User(DBUser, AbstractUser, BaseUser):
|
||||
async def get_direct_chats(self) -> dict[UserID, list[RoomID]]:
|
||||
return {
|
||||
pu.Puppet.get_mxid_from_id(portal.tgid): [portal.mxid]
|
||||
async for portal in po.Portal.find_private_chats(self.tgid)
|
||||
async for portal in po.Portal.find_private_chats_of(self.tgid)
|
||||
if portal.mxid
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user