diff options
author | Maksim Sukharev <antreesy.web@gmail.com> | 2024-07-02 20:14:15 +0200 |
---|---|---|
committer | Maksim Sukharev <antreesy.web@gmail.com> | 2024-07-02 20:14:15 +0200 |
commit | e815ef2dd0cd37e8fde5a3f8cff652dc1277970b (patch) | |
tree | 1189a851b04083d9afd31472a7c42c62579fdf84 | |
parent | 1d76f7852ed0e525e308d388116a7c52d4ab1c2d (diff) |
fix(chat): drop outdated fields during object patch
- fix from ed3b02cd9940efdf5f3c14a24bc7fc1b6051bf10 is no longer an issue
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
-rw-r--r-- | src/store/messagesStore.js | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js index c6066cce9..84ff44445 100644 --- a/src/store/messagesStore.js +++ b/src/store/messagesStore.js @@ -290,13 +290,7 @@ const mutations = { if (!state.messages[token]) { Vue.set(state.messages, token, {}) } - if (state.messages[token][message.id]) { - Vue.set(state.messages[token], message.id, - Object.assign({}, state.messages[token][message.id], message) - ) - } else { - Vue.set(state.messages[token], message.id, message) - } + Vue.set(state.messages[token], message.id, message) }, /** * Deletes a message from the store. |