Skip to content

Commit

Permalink
chore: sdk update to v3.8.2 & scss legacy-js-api
Browse files Browse the repository at this point in the history
  • Loading branch information
Bloomingg committed Nov 25, 2024
1 parent 5b82b67 commit d88dc7f
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@
"@ckeditor/ckeditor5-react": "^8.0.0",
"@livekit/components-react": "^2.3.1",
"@livekit/components-styles": "^1.0.12",
"@openim/wasm-client-sdk": "^3.8.2",
"@openim/wasm-client-sdk": "^3.8.2-2",
"ahooks": "^3.7.7",
"antd": "5.10.0",
"axios": "^1.4.0",
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useConversationSettings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export function useConversationSettings() {
if (!currentConversation) return;

try {
await IMSDK.pinConversation({
await IMSDK.setConversation({
conversationID: currentConversation.conversationID,
isPinned,
});
Expand Down
7 changes: 7 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ export default defineConfig(({ command }) => {
"@": path.join(__dirname, "src"),
},
},
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ["legacy-js-api"],
},
},
},
plugins: [
react(),
electron({
Expand Down

0 comments on commit d88dc7f

Please sign in to comment.