@bcc-code/vue-bcc-chat-ui 4.0.0 → 4.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@bcc-code/vue-bcc-chat-ui",
3
3
  "author": "bcc-code",
4
4
  "license": "Apache-2.0",
5
- "version": "4.0.0",
5
+ "version": "4.0.2",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -93,16 +93,24 @@ watch([loggedIn, chat.onlineStatus, () => props.chatUid, chat.initialized, () =>
93
93
  }
94
94
 
95
95
  if (chatGroup.value) {
96
+
97
+ let isChannel = (chatGroup.value.getMetadata() as any).isChannel;
98
+
96
99
  watchAndApplyStyle(".bcc-chat-message-list-wrapper", [
97
100
  {
98
101
  selector: ".cc-messagebubble-wrapper__container",
99
102
  style: {
100
- "max-width": (chatGroup.value.getMetadata() as any).isChannel ? "95%" : "80%"
103
+ "max-width": isChannel ? "95%" : "80%"
101
104
  }
102
105
  }
103
106
  ])
104
107
 
105
- getGroupMembersInfo(_chatUid).then((participants) => groupMembers.value = participants);
108
+ if (!isChannel) {
109
+ getGroupMembersInfo(_chatUid).then((participants) => groupMembers.value = participants);
110
+ } else {
111
+ groupMembers.value = [];
112
+ }
113
+
106
114
  }
107
115
 
108
116
  await chat.clearGroupChatCount(props.chatUid);