@bcc-code/vue-bcc-chat-ui 7.1.25 → 7.1.26
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
|
@@ -529,7 +529,7 @@ declare function getChatOnlineCount(chatUid: string): Promise<number>;
|
|
|
529
529
|
|
|
530
530
|
declare function getCurrentEnvironment(): ChatEnvironmentConfig;
|
|
531
531
|
|
|
532
|
-
declare function getGroup(groupUid: string): Promise<Group | null | undefined>;
|
|
532
|
+
declare function getGroup(groupUid: string, throwErrors?: boolean): Promise<Group | null | undefined>;
|
|
533
533
|
|
|
534
534
|
declare function getMessageTextPreview(message?: any, showEmoji?: boolean, showAttachmentName?: boolean): string;
|
|
535
535
|
|
package/dist/vue-bcc-chat-ui.js
CHANGED
|
@@ -6146,12 +6146,14 @@ function su(e) {
|
|
|
6146
6146
|
function cu(e) {
|
|
6147
6147
|
Vl(e);
|
|
6148
6148
|
}
|
|
6149
|
-
async function lu(e) {
|
|
6149
|
+
async function lu(e, t = !1) {
|
|
6150
6150
|
if (!Jl.value) return null;
|
|
6151
6151
|
try {
|
|
6152
6152
|
return await U.getGroup(e);
|
|
6153
6153
|
} catch (e) {
|
|
6154
|
-
|
|
6154
|
+
if (e && typeof e == "object" && "code" in e && e.code === "ERR_GUID_NOT_FOUND") return;
|
|
6155
|
+
if (t) throw e;
|
|
6156
|
+
return null;
|
|
6155
6157
|
}
|
|
6156
6158
|
}
|
|
6157
6159
|
async function uu() {
|
|
@@ -9800,7 +9802,7 @@ var uf = { class: "w-full" }, df = {
|
|
|
9800
9802
|
}
|
|
9801
9803
|
}
|
|
9802
9804
|
async function oe(e, t) {
|
|
9803
|
-
let n = await gu.getGroup(e);
|
|
9805
|
+
let n = await gu.getGroup(e, !0);
|
|
9804
9806
|
if (!n || typeof n != "object") return null;
|
|
9805
9807
|
let r = String(n.getGuid());
|
|
9806
9808
|
if (!r) return null;
|