diff --git a/CHANGELOG.md b/CHANGELOG.md index 6640736..09add84 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -21,6 +21,14 @@ + + +## Version 1.22.0 - 2026-01-03 + +update py files + +**Changes:** 1 files, 8 lines +**Languages:** Python (8 lines) ## Version 1.21.0 - 2026-01-03 diff --git a/pyproject.toml b/pyproject.toml index b27637b..b076cb4 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "Snek" -version = "1.21.0" +version = "1.22.0" readme = "README.md" #license = { file = "LICENSE", content-type="text/markdown" } description = "Snek Chat Application by Molodetz" diff --git a/src/snek/view/rpc.py b/src/snek/view/rpc.py index 051d74c..b075aa1 100644 --- a/src/snek/view/rpc.py +++ b/src/snek/view/rpc.py @@ -382,8 +382,14 @@ class RPCView(BaseView): color = safe_get(last_message_user, "color") if last_message_user else None except Exception: pass + other_user = await self.services.channel_member.get_other_dm_user( + subscription["channel_uid"], self.user_uid + ) + + name = other_user and other_user['nick'] or subscription['label'] + channels.append({ - "name": subscription["description"] or "", + "name": name, "uid": channel_uid, "tag": channel["tag"] or "", "new_count": subscription["new_count"] or 0,