@bcc-code/vue-bcc-chat-ui 7.1.25 → 7.1.27
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/dist/index.d.ts
CHANGED
|
@@ -333,6 +333,7 @@ export declare interface ChatConversationItem {
|
|
|
333
333
|
unreadCount: number;
|
|
334
334
|
lastMessageAt?: Date;
|
|
335
335
|
muteSettings?: Date | null;
|
|
336
|
+
hasJoined?: boolean;
|
|
336
337
|
tags: string[];
|
|
337
338
|
memberCount?: number;
|
|
338
339
|
source?: Conversation | null;
|
|
@@ -529,7 +530,7 @@ declare function getChatOnlineCount(chatUid: string): Promise<number>;
|
|
|
529
530
|
|
|
530
531
|
declare function getCurrentEnvironment(): ChatEnvironmentConfig;
|
|
531
532
|
|
|
532
|
-
declare function getGroup(groupUid: string): Promise<Group | null | undefined>;
|
|
533
|
+
declare function getGroup(groupUid: string, throwErrors?: boolean): Promise<Group | null | undefined>;
|
|
533
534
|
|
|
534
535
|
declare function getMessageTextPreview(message?: any, showEmoji?: boolean, showAttachmentName?: boolean): string;
|
|
535
536
|
|
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -5361,6 +5361,7 @@ function dc(e, t) {
|
|
|
5361
5361
|
type: r,
|
|
5362
5362
|
title: _t("scheduledMessages"),
|
|
5363
5363
|
subtitle: _t("hiddenHelperConversation"),
|
|
5364
|
+
hasJoined: !0,
|
|
5364
5365
|
unreadCount: 0,
|
|
5365
5366
|
tags: [],
|
|
5366
5367
|
source: e
|
|
@@ -5374,6 +5375,7 @@ function dc(e, t) {
|
|
|
5374
5375
|
subtitle: l && Tc(l) && !l.isDeleted ? Oc(l) : "No messages yet",
|
|
5375
5376
|
avatar: i ? Qe(i.getAvatar()) : void 0,
|
|
5376
5377
|
unreadCount: Number.isFinite(u) ? u : 0,
|
|
5378
|
+
hasJoined: a?.getHasJoined() ?? !0,
|
|
5377
5379
|
lastMessageAt: s && !l?.isDeleted ? /* @__PURE__ */ new Date((s.getSentAt?.() ?? 0) * 1e3) : void 0,
|
|
5378
5380
|
tags: (e.getTags() ?? []).map((e) => String(e)),
|
|
5379
5381
|
memberCount: a ? Math.max((a.getMembersCount() ?? 1) - 1, 0) : void 0,
|
|
@@ -6146,12 +6148,14 @@ function su(e) {
|
|
|
6146
6148
|
function cu(e) {
|
|
6147
6149
|
Vl(e);
|
|
6148
6150
|
}
|
|
6149
|
-
async function lu(e) {
|
|
6151
|
+
async function lu(e, t = !1) {
|
|
6150
6152
|
if (!Jl.value) return null;
|
|
6151
6153
|
try {
|
|
6152
6154
|
return await U.getGroup(e);
|
|
6153
6155
|
} catch (e) {
|
|
6154
|
-
|
|
6156
|
+
if (e && typeof e == "object" && "code" in e && e.code === "ERR_GUID_NOT_FOUND") return;
|
|
6157
|
+
if (t) throw e;
|
|
6158
|
+
return null;
|
|
6155
6159
|
}
|
|
6156
6160
|
}
|
|
6157
6161
|
async function uu() {
|
|
@@ -9800,7 +9804,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9800
9804
|
}
|
|
9801
9805
|
}
|
|
9802
9806
|
async function oe(e, t) {
|
|
9803
|
-
let n = await gu.getGroup(e);
|
|
9807
|
+
let n = await gu.getGroup(e, !0);
|
|
9804
9808
|
if (!n || typeof n != "object") return null;
|
|
9805
9809
|
let r = String(n.getGuid());
|
|
9806
9810
|
if (!r) return null;
|
|
@@ -9812,6 +9816,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9812
9816
|
subtitle: "No messages yet",
|
|
9813
9817
|
unreadCount: 0,
|
|
9814
9818
|
tags: (n.getTags() ?? []).map((e) => String(e)),
|
|
9819
|
+
hasJoined: n.getHasJoined() ?? !1,
|
|
9815
9820
|
memberCount: Math.max((Number(n.getMembersCount()) || 1) - 1, 0),
|
|
9816
9821
|
source: { getConversationWith: () => n }
|
|
9817
9822
|
};
|