refactor: upsertVoiceList

This commit is contained in:
Tristan Yang
2023-03-31 12:59:54 +08:00
parent bdc27314fd
commit c35a7d211b
4 changed files with 22 additions and 7 deletions
+2 -2
View File
@@ -22,7 +22,7 @@ import {
} from "../../types/server";
import { Channel } from "../../types/channel";
import { ContentTypeKey } from "../../types/message";
import { updateVoiceList } from "../slices/voice";
import { upsertVoiceList } from "../slices/voice";
const defaultExpireDuration = 2 * 24 * 60 * 60;
@@ -139,7 +139,7 @@ export const serverApi = createApi({
memberCount: count
};
});
dispatch(updateVoiceList(arr));
dispatch(upsertVoiceList(arr));
}
} catch {
console.error("get voice list error");