refactor: more TS code

This commit is contained in:
Tristan Yang
2022-07-08 10:18:23 +08:00
parent be6822e568
commit 678b8515ca
36 changed files with 210 additions and 220 deletions
+2 -2
View File
@@ -99,14 +99,14 @@ export const channelApi = createApi({
const {
channelMessage,
ui: {
rememberedNavs: { chat: remeberedPath }
rememberedNavs: { chat: rememberedPath }
}
} = getState() as RootState;
try {
await queryFulfilled;
// 删掉该channel下的所有消息&reaction
const mids = channelMessage[id];
if (remeberedPath == `/chat/channel/${id}`) {
if (rememberedPath == `/chat/channel/${id}`) {
dispatch(updateRememberedNavs({ path: null }));
}
if (mids) {