chore: update py files

This commit is contained in:
retoor 2026-01-03 14:49:54 +01:00
parent 1d0c835087
commit 70544cf488
3 changed files with 16 additions and 2 deletions

View File

@ -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

View File

@ -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"

View File

@ -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,