@droppii-org/chat-sdk 0.4.14 → 0.4.15

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.
@@ -1 +1 @@
1
- {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/store/conversation.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAO3C,QAAA,MAAM,oBAAoB,gFAqXvB,CAAC;AAEJ,eAAe,oBAAoB,CAAC"}
1
+ {"version":3,"file":"conversation.d.ts","sourceRoot":"","sources":["../../src/store/conversation.ts"],"names":[],"mappings":"AAUA,OAAO,EAAE,iBAAiB,EAAE,MAAM,QAAQ,CAAC;AAQ3C,QAAA,MAAM,oBAAoB,gFA0XvB,CAAC;AAEJ,eAAe,oBAAoB,CAAC"}
@@ -4,6 +4,7 @@ import { DChatSDK } from "../constants/sdk";
4
4
  import { conversationSort, isGroupConversation } from "../utils/imCommon";
5
5
  import { PeerType } from "../types/conversation";
6
6
  import useUserStore from "./user";
7
+ import useAuthStore from "./auth";
7
8
  const CONVERSATION_SPLIT_COUNT = 500;
8
9
  const useConversationStore = create((set, get) => ({
9
10
  conversationData: null,
@@ -188,7 +189,10 @@ const useConversationStore = create((set, get) => ({
188
189
  },
189
190
  getCurrentMemberInGroupByReq: async (groupID) => {
190
191
  let memberInfo;
191
- const selfID = useUserStore.getState().selfInfo.id;
192
+ const selfID = useAuthStore.getState().userID || useUserStore.getState().selfInfo.id;
193
+ if (!selfID) {
194
+ return;
195
+ }
192
196
  try {
193
197
  const { data } = await DChatSDK.getSpecifiedGroupMembersInfo({
194
198
  groupID,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@droppii-org/chat-sdk",
3
- "version": "0.4.14",
3
+ "version": "0.4.15",
4
4
  "description": "Droppii React Chat SDK",
5
5
  "repository": {
6
6
  "type": "git",