@phonghq/go-chat 1.0.57 → 1.0.58

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.
@@ -218,6 +218,7 @@ defineExpose({
218
218
  openSettings,
219
219
  initData: (data) => handleExposeInit(data),
220
220
  backToHome,
221
+ closeCallingModal: () => callingRef.value?.closeModal(),
221
222
  });
222
223
  debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
223
224
  const __VLS_defaults = {
@@ -234,7 +235,7 @@ let __VLS_elements;
234
235
  let __VLS_components;
235
236
  let __VLS_directives;
236
237
  __VLS_asFunctionalElement(__VLS_elements.div, __VLS_elements.div)({
237
- ...{ class: "go-chat-main max-w-full" },
238
+ ...{ class: "go-chat-main max-w-full bg-white" },
238
239
  id: "appChatMain",
239
240
  ref: "appChatRef",
240
241
  });
@@ -287,10 +288,12 @@ else if (__VLS_ctx.currentPage == __VLS_ctx.PAGE.NOT_TENANT_PHONE) {
287
288
  // @ts-ignore
288
289
  const __VLS_16 = __VLS_asFunctionalComponent(NotTenantPhone, new NotTenantPhone({
289
290
  ...{ 'onTryAgain': {} },
291
+ ...{ class: "bg-white" },
290
292
  isLib: (props.isLib),
291
293
  }));
292
294
  const __VLS_17 = __VLS_16({
293
295
  ...{ 'onTryAgain': {} },
296
+ ...{ class: "bg-white" },
294
297
  isLib: (props.isLib),
295
298
  }, ...__VLS_functionalComponentArgsRest(__VLS_16));
296
299
  let __VLS_19;
@@ -862,10 +865,12 @@ else {
862
865
  }
863
866
  /** @type {__VLS_StyleScopedClasses['go-chat-main']} */ ;
864
867
  /** @type {__VLS_StyleScopedClasses['max-w-full']} */ ;
868
+ /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
865
869
  /** @type {__VLS_StyleScopedClasses['m-auto']} */ ;
866
870
  /** @type {__VLS_StyleScopedClasses['flex-center']} */ ;
867
871
  /** @type {__VLS_StyleScopedClasses['sc-full']} */ ;
868
872
  /** @type {__VLS_StyleScopedClasses['mt-10']} */ ;
873
+ /** @type {__VLS_StyleScopedClasses['bg-white']} */ ;
869
874
  /** @type {__VLS_StyleScopedClasses['grow']} */ ;
870
875
  /** @type {__VLS_StyleScopedClasses['h-full']} */ ;
871
876
  /** @type {__VLS_StyleScopedClasses['overflow-hidden']} */ ;
@@ -117,8 +117,7 @@ function startTimer() {
117
117
  }
118
118
  function endCall(option) {
119
119
  if (option?.closeModal) {
120
- drawerVisible.value = false;
121
- drawerVisibleRef.value?.close();
120
+ closeModal();
122
121
  }
123
122
  audioRef.value?.pause();
124
123
  handleEmitEndCall(userRemoter.value, callType);
@@ -134,6 +133,10 @@ function endCall(option) {
134
133
  clearTimeout(timeOut);
135
134
  callType = '';
136
135
  }
136
+ const closeModal = () => {
137
+ drawerVisible.value = false;
138
+ drawerVisibleRef.value?.close();
139
+ };
137
140
  const handleEmitEndCall = useDebounce((data, type) => {
138
141
  emit('endCall', data, type);
139
142
  }, 500);
@@ -249,7 +252,7 @@ const handleAfterClose = () => {
249
252
  uuidEnd = '';
250
253
  };
251
254
  let __VLS_exposed;
252
- defineExpose({ startCall, endCall, userRemoter, callStatus, answer, label });
255
+ defineExpose({ startCall, endCall, userRemoter, callStatus, answer, label, closeModal });
253
256
  debugger; /* PartiallyEnd: #3632/scriptSetup.vue */
254
257
  const __VLS_defaults = {
255
258
  responsive: 'window'
@@ -64,6 +64,10 @@ export const useListConversations = (is_unknown, is_tenant) => {
64
64
  }
65
65
  };
66
66
  const mqttMessageHandler = (topic, data) => {
67
+ if (topic == TOPIC_HOME[3] + dataProfile.value?.id) {
68
+ getData({}, { reset: true });
69
+ return;
70
+ }
67
71
  if ((data.is_unknown ?? 0) == is_unknown || (!is_tenant && is_unknown == 0)) {
68
72
  getDataMqttDebounce();
69
73
  if (topic ===
@@ -10,6 +10,7 @@ export const TOPIC_HOME = [
10
10
  'chat/conversation/update/message-call/',
11
11
  'chat/conversation/update/sms-inbound/',
12
12
  'chat/conversation/read_message/',
13
+ 'chat/conversation/reload/sms-inbound/',
13
14
  ];
14
15
  // export CALL_STATE = {
15
16
  // Offer: 'offer',