We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 329c95f commit 5c4e9efCopy full SHA for 5c4e9ef
package/src/components/ChannelList/hooks/listeners/useChannelUpdated.ts
@@ -33,8 +33,14 @@ export const useChannelUpdated = <
33
(channel) => channel.cid === (event.cid || event.channel?.cid),
34
);
35
if (index >= 0 && event.channel) {
36
- channels[index].data = event.channel;
+ channels[index].data = {
37
+ ...event.channel,
38
+ hidden: event.channel?.hidden ?? channels[index].data?.hidden,
39
+ own_capabilities:
40
+ event.channel?.own_capabilities ?? channels[index].data?.own_capabilities,
41
+ };
42
}
43
+
44
return [...channels];
45
});
46
0 commit comments