feat: disallow replying while uploading image/file

This commit is contained in:
zerosoul
2022-05-23 11:54:46 +08:00
parent f093221805
commit c1c0107512
7 changed files with 46 additions and 30 deletions
+6 -6
View File
@@ -52,14 +52,14 @@ const messageSlice = createSlice({
});
},
addReplyingMessage(state, action) {
const { id, mid } = action.payload;
console.log("to ", id, mid);
state.replying[id] = mid;
const { key, mid } = action.payload;
console.log("to ", key, mid);
state.replying[key] = mid;
},
removeReplyingMessage(state, action) {
const id = action.payload;
if (state.replying[id]) {
delete state.replying[id];
const key = action.payload;
if (state.replying[key]) {
delete state.replying[key];
}
},
},