easemob-chat-uikit 2.4.1-beta.1 → 2.4.1-beta.2
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/ChatUI.esm.js +2 -2
- package/ChatUI.js +1 -1
- package/ChatUI.umd.js +1 -1
- package/package.json +1 -1
package/ChatUI.esm.js
CHANGED
|
@@ -43588,12 +43588,12 @@ const useConversations = (r = !1) => {
|
|
|
43588
43588
|
(Q = f.data) != null && Q.cursor ? (s.setHasConversationNext(!0), cursor = ((ee = f.data) == null ? void 0 : ee.cursor) || "") : s.setHasConversationNext(!1);
|
|
43589
43589
|
const w = (ie = (re = (te = f.data) == null ? void 0 : te.conversations) == null ? void 0 : re.filter((se) => {
|
|
43590
43590
|
const { lastMessage: de = {} } = se;
|
|
43591
|
-
return !de.chatThread;
|
|
43591
|
+
return !(de != null && de.chatThread);
|
|
43592
43592
|
})) == null ? void 0 : ie.map((se) => ({
|
|
43593
43593
|
chatType: se.conversationType,
|
|
43594
43594
|
conversationId: se.conversationId,
|
|
43595
43595
|
unreadCount: se.unReadCount,
|
|
43596
|
-
lastMessage: se.lastMessage
|
|
43596
|
+
lastMessage: se.lastMessage || {}
|
|
43597
43597
|
}));
|
|
43598
43598
|
s.getSilentModeForConversations(w || []), s.setConversation(w), eventHandler.dispatchSuccess("getConversationlist");
|
|
43599
43599
|
}).catch((f) => {
|