fixing channel detail structure mismatch
Some checks are pending
CI / CI (push) Waiting to run

This commit is contained in:
balzack 2025-03-11 22:33:26 -07:00
parent 367df58b52
commit 43aa246605
6 changed files with 7 additions and 10 deletions

View File

@ -26,7 +26,7 @@
"@types/react-native": "^0.73.0",
"@types/react-native-video": "^5.0.20",
"crypto-js": "^3.3.0",
"databag-client-sdk": "^0.0.31",
"databag-client-sdk": "^0.0.32",
"jsencrypt": "^3.3.2",
"react": "18.3.1",
"react-dom": "^18.3.1",
@ -50,6 +50,7 @@
"react-native-securerandom": "^1.0.1",
"react-native-splash-screen": "^3.3.0",
"react-native-sqlite-storage": "^6.0.1",
"react-native-svg-transformer": "^1.5.0",
"react-native-vector-icons": "^10.2.0",
"react-native-video": "^6.8.2",
"react-native-webrtc": "^124.0.5",

View File

@ -24,7 +24,7 @@
"@types/react-dom": "18.0.6",
"@vitejs/plugin-react": "4.3.1",
"crypto-js": "^4.2.0",
"databag-client-sdk": "^0.0.31",
"databag-client-sdk": "^0.0.32",
"jest": "29.1.1",
"jsencrypt": "^3.3.2",
"react": "18.3.1",

View File

@ -1,6 +1,6 @@
{
"name": "databag-client-sdk",
"version": "0.0.31",
"version": "0.0.32",
"description": "an SDK for developing Databag applications",
"main": "./dist/index.js",
"module": "./dist/index.mjs",

View File

@ -654,8 +654,7 @@ export class ContactModule implements Contact {
enableVideo,
enableBinary,
created,
members: members.map(({ member }) => ({ guid: member }))
//members: []
members: members.map(guid => ({ guid }))
}
this.focus.setDetail(cardId, id, focusDetail);
}

View File

@ -77,10 +77,7 @@ export type ChannelDetailEntity = {
groups: string[];
cards: string[];
};
members: {
member: string;
pushEnabled: boolean;
}[];
members: string[];
};
export type ChannelEntity = {

View File

@ -169,7 +169,7 @@ export class StreamModule {
enableVideo,
enableBinary,
created,
members: members.map(guid => ({ guid: guid.member })),
members: members.map(guid => ({ guid })),
}
this.focus.setDetail(null, id, focusDetail);
}