fix(channel): sync a cleared group DM name without a reload (#2882)

This commit is contained in:
Hampus authored and GitHub committed 2026-09-21 15:34:18 +02:00
1 parent c7ec2a0f58
commit 7601bf98ee
5 files changed
+68 -6

No files matched your search

@@ -87,7 +87,7 @@ export class Channel {
this.instanceId = options?.instanceId ?? RuntimeConfig.localInstanceDomain;
this.id = channel.id;
this.guildId = channel.guild_id;
this.name = channel.name;
this.name = channel.name ?? undefined;
noteText(this.name);
this.topic = channel.topic ?? null;
this.url = channel.url ?? null;
@@ -223,7 +223,7 @@ export class Channel {
{
id: this.id,
guild_id: updates.guild_id ?? this.guildId,
name: updates.name ?? this.name,
name: updates.name !== undefined ? updates.name : this.name,
topic: updates.topic !== undefined ? updates.topic : this.topic,
url: updates.url !== undefined ? updates.url : this.url,
icon: updates.icon !== undefined ? updates.icon : this.icon,