gateway: dont show own user on recipient_ids list

This commit is contained in:
Luna 2021-08-31 00:32:13 -03:00
parent 56b6b8665f
commit 46dff6e722
1 changed files with 3 additions and 1 deletions

View File

@ -119,7 +119,9 @@ def _complete_users_list(user_id: str, base_ready, user_ready, ws_properties) ->
"type": private_channel["type"],
"last_message_id": private_channel["last_message_id"],
"recipient_ids": [
recipient["id"] for recipient in private_channel["recipients"]
recipient["id"]
for recipient in private_channel["recipients"]
if recipient["id"] != user_id
],
# TODO implement last_pin_timestamp here
# "last_pin_timestamp": "2020-03-30T00:00:00.888000+00:00",