mirror of https://gitlab.com/litecord/litecord.git
gateway: allow self user in ready.users
This commit is contained in:
parent
ae5c0bd0e3
commit
e55ada44a8
|
|
@ -95,9 +95,6 @@ def _complete_users_list(user_id: str, base_ready, user_ready, wsp) -> dict:
|
||||||
relationship_user = relationship["user"]
|
relationship_user = relationship["user"]
|
||||||
users_to_send[relationship_user["id"]] = relationship_user
|
users_to_send[relationship_user["id"]] = relationship_user
|
||||||
|
|
||||||
if user_id in users_to_send:
|
|
||||||
users_to_send.pop(user_id)
|
|
||||||
|
|
||||||
ready = {**base_ready, **user_ready}
|
ready = {**base_ready, **user_ready}
|
||||||
ready["users"] = [value for value in users_to_send.values()]
|
ready["users"] = [value for value in users_to_send.values()]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue