@bcc-code/vue-bcc-chat-ui 4.2.1 → 4.3.1

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.2.1",
5
+ "version": "4.3.1",
6
6
  "type": "module",
7
7
  "private": false,
8
8
  "files": [
@@ -20,6 +20,7 @@ import { CometChatMessageEvents, MessageStatus } from "@cometchat/uikit-resource
20
20
  import BccChatMessages from "./BccChatMessages.vue";
21
21
  import BccScheduledMessages from "./BccScheduledMessages.vue";
22
22
  import { getGroupMembersInfo } from "../chat/data";
23
+ import logger from "../chat/logger";
23
24
  const props = defineProps({
24
25
  chatUid: { type: String, required: true },
25
26
  senderDisplayName: { type: String, required: false },
@@ -79,6 +80,8 @@ const onMessageSend = CometChatMessageEvents.ccMessageSent.subscribe(({ message,
79
80
  });
80
81
 
81
82
  watch([loggedIn, chat.onlineStatus, () => props.chatUid, chat.initialized, () => props.groupMessageGetter], async ([_loggedIn, _online, _chatUid, _initialized, _groupMessageGetter]) => {
83
+ logger.debug("ChatMessageList watch changed", { chatUid: _chatUid, loggedIn: _loggedIn, online: _online, initialized: _initialized });
84
+
82
85
  if (_loggedIn && _chatUid && _initialized) {
83
86
  chatGroupNotFound.value = false;
84
87
  const [_, group] = await Promise.all([
@@ -128,6 +131,7 @@ watchEffect(() => {
128
131
  })
129
132
 
130
133
  onMounted(() => {
134
+ logger.debug("Mounting chat", { chatUid: props.chatUid });
131
135
  watchAndApplyStyle(".bcc-chat-message-list-wrapper", [
132
136
  {
133
137
  selector: ".cc__text",
@@ -5,7 +5,7 @@ import { ChatInstance } from '../chat/types';
5
5
  import { CometChatUIKitLoginListener } from '@cometchat/uikit-shared';
6
6
  import chat from '../chat';
7
7
  import { getCurrentEnvironment } from '../chat/environment';
8
- import { getAccessToken } from '../chat/login';
8
+ import { getAccessToken } from '../chat/accessToken';
9
9
 
10
10
  const chatInstance = inject<Ref<ChatInstance>>("chatInstance");
11
11