mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-17 13:05:32 +09:00
fix(channel): sync a cleared group DM name without a reload (#2882)
This commit is contained in:
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,
|
||||
|
||||
Reference in new issue
Block a user