@bcc-code/vue-bcc-chat-ui 5.7.0 → 5.7.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": "5.7.0",
5
+ "version": "5.7.2",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -43,7 +43,7 @@ const chatGroupNotFound = ref(false);
43
43
 
44
44
  const isChatMessagesEmpty = ref(false);
45
45
 
46
- const emit = defineEmits(['groupMembersFetched', 'chatEmpty']);
46
+ const emit = defineEmits(['groupMembersFetched']);
47
47
  const groupMembers = ref<ParticipantInfo[]>();
48
48
 
49
49
  const chatInstance: Ref<ChatInstance> = ref({
@@ -137,7 +137,6 @@ watch([loggedIn, chat.onlineStatus, () => props.chatUid, chat.initialized, () =>
137
137
  affix: 'prepend'
138
138
  }).total === 0) {
139
139
  isChatMessagesEmpty.value = true;
140
- emit('chatEmpty');
141
140
  } else {
142
141
  isChatMessagesEmpty.value = false;
143
142
  }
@@ -296,8 +295,10 @@ function closeScheduledMessage() {
296
295
  <div v-else class="bcc-chat-message-list-offline">
297
296
  <span>Loading...</span>
298
297
  </div>
299
- <div v-if="isChatMessagesEmpty && chatGroup && displayNoMessagesText" class="bcc-chat-message-list-offline pointer-events-none">
298
+ <div v-if="isChatMessagesEmpty && chatGroup" class="bcc-chat-message-list-offline pointer-events-none">
299
+ <slot name="no-messages">
300
300
  <span>No messages have been sent yet</span>
301
+ </slot>
301
302
  </div>
302
303
  </div>
303
304
  </template>