change validator api

This commit is contained in:
grimhilt
2023-04-13 10:58:58 +02:00
parent 4e79ab12dc
commit e43ab6cfe1
3 changed files with 54 additions and 54 deletions

View File

@@ -112,6 +112,7 @@ const store = createStore<State>({
});
},
addFlag(state, payload) {
// todo if seen notif
const msg = roomOnId(state, payload.roomId)?.messages.find((msg) => msg.id == payload.messageId);
if (msg) {
msg.flags.push(payload.flag);