fix: public member list error

This commit is contained in:
zerosoul
2022-04-10 10:02:06 +08:00
parent 9f909a85d3
commit 23496d0baf
2 changed files with 10 additions and 2 deletions
+1 -1
View File
@@ -56,7 +56,7 @@ export default function ChannelChat({ cid = "", dropFiles = [] }) {
};
const { name, description, is_public, members = [] } = data;
const memberIds = members.length == 0 ? userIds : members;
const memberIds = is_public ? userIds : members;
console.log("channel message list", msgIds);
const readIndex = footprint.readChannels[cid];
return (