@bcc-code/vue-bcc-chat-ui 5.7.1 → 5.7.3
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
|
@@ -43,7 +43,7 @@ const chatGroupNotFound = ref(false);
|
|
|
43
43
|
|
|
44
44
|
const isChatMessagesEmpty = ref(false);
|
|
45
45
|
|
|
46
|
-
const emit = defineEmits(['groupMembersFetched'
|
|
46
|
+
const emit = defineEmits(['groupMembersFetched']);
|
|
47
47
|
const groupMembers = ref<ParticipantInfo[]>();
|
|
48
48
|
|
|
49
49
|
const chatInstance: Ref<ChatInstance> = ref({
|
|
@@ -88,6 +88,7 @@ const onMessageSend = CometChatMessageEvents.ccMessageSent.subscribe(({ message,
|
|
|
88
88
|
tags.push(muid);
|
|
89
89
|
(message as any).setTags(tags);
|
|
90
90
|
(message as any).setMetadata(metadata);
|
|
91
|
+
isChatMessagesEmpty.value = false;
|
|
91
92
|
});
|
|
92
93
|
|
|
93
94
|
watch([loggedIn, chat.onlineStatus, () => props.chatUid, chat.initialized, () => props.groupMessageGetter, chat.scrollToMessageId, localLoadMessageId], async ([_loggedIn, _online, _chatUid, _initialized, _groupMessageGetter, _scrollToMessageId, _localLoadMessageId]) => {
|
|
@@ -137,7 +138,6 @@ watch([loggedIn, chat.onlineStatus, () => props.chatUid, chat.initialized, () =>
|
|
|
137
138
|
affix: 'prepend'
|
|
138
139
|
}).total === 0) {
|
|
139
140
|
isChatMessagesEmpty.value = true;
|
|
140
|
-
emit('chatEmpty');
|
|
141
141
|
} else {
|
|
142
142
|
isChatMessagesEmpty.value = false;
|
|
143
143
|
}
|
|
@@ -296,8 +296,10 @@ function closeScheduledMessage() {
|
|
|
296
296
|
<div v-else class="bcc-chat-message-list-offline">
|
|
297
297
|
<span>Loading...</span>
|
|
298
298
|
</div>
|
|
299
|
-
<div v-if="isChatMessagesEmpty && chatGroup
|
|
299
|
+
<div v-if="isChatMessagesEmpty && chatGroup" class="bcc-chat-message-list-offline pointer-events-none">
|
|
300
|
+
<slot name="no-messages">
|
|
300
301
|
<span>No messages have been sent yet</span>
|
|
302
|
+
</slot>
|
|
301
303
|
</div>
|
|
302
304
|
</div>
|
|
303
305
|
</template>
|
|
@@ -478,4 +480,4 @@ accent900: text in avatar
|
|
|
478
480
|
background: rgb(232, 229, 229);
|
|
479
481
|
border-radius: 8px;
|
|
480
482
|
}
|
|
481
|
-
</style>
|
|
483
|
+
</style>
|