Replace custom get_users with client.get_participants

This commit is contained in:
Tulir Asokan
2020-08-18 23:41:38 +03:00
parent 95bb974ca6
commit f84dcb64d3
2 changed files with 32 additions and 61 deletions
+1 -1
View File
@@ -277,7 +277,7 @@ class AbstractUser(ABC):
async def update_participants(update: UpdateChatParticipants) -> None:
portal = po.Portal.get_by_tgid(TelegramID(update.participants.chat_id))
if portal and portal.mxid:
await portal.update_telegram_participants(update.participants.participants)
await portal.update_power_levels(update.participants.participants)
async def update_read_receipt(self, update: UpdateReadHistoryOutbox) -> None:
if not isinstance(update.peer, PeerUser):