fix: file message history

This commit is contained in:
zerosoul
2022-04-02 23:30:51 +08:00
parent 44c143cd48
commit 07ee13b8ba
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ const fileMessageSlice = createSlice({
: [action.payload];
mids.forEach((id) => {
// 从file message 列表删掉
const fidIdx = state.fileMessages.findIndex((fid) => fid == id);
const fidIdx = state.findIndex((fid) => fid == id);
if (fidIdx > -1) {
state.splice(fidIdx, 1);
}