gateway: only remove self if it is in ready.users

This commit is contained in:
Luna 2021-06-26 00:32:42 -03:00
parent 265de527a9
commit 70678aaaf3
1 changed files with 2 additions and 1 deletions

View File

@ -86,6 +86,7 @@ def _complete_users_list(user_id: str, base_ready, user_ready) -> dict:
for recipient in private_channel["recipients"]:
users_to_send[recipient["id"]] = recipient
if user_id in users_to_send:
users_to_send.pop(user_id)
ready = {**base_ready, **user_ready}