diff options
author | Marco Ambrosini <marcoambrosini@pm.me> | 2021-06-14 18:03:51 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2021-06-17 17:48:26 +0300 |
commit | 2f2b6b9679efd3c7f262499a31f9058b2a7f03c5 (patch) | |
tree | c8b5097ab8031d2c36aec3a844c5234209364c13 /src/store/messagesStore.js | |
parent | 29b2dd55ac8d7d593d0a1fb0b4bf09e01137ee42 (diff) |
Lint fix
Signed-off-by: Marco Ambrosini <marcoambrosini@pm.me>
Diffstat (limited to 'src/store/messagesStore.js')
-rw-r--r-- | src/store/messagesStore.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/store/messagesStore.js b/src/store/messagesStore.js index ddcb35875..149bd00c3 100644 --- a/src/store/messagesStore.js +++ b/src/store/messagesStore.js @@ -479,7 +479,7 @@ const actions = { return } // set the id to the last message - context.dispatch('updateLastReadMessage', { token, id: conversation.lastMessage.id, updateVisually: updateVisually }) + context.dispatch('updateLastReadMessage', { token, id: conversation.lastMessage.id, updateVisually }) context.dispatch('markConversationRead', token) }, @@ -560,7 +560,7 @@ const actions = { if (response.headers['x-chat-last-given']) { context.dispatch('setFirstKnownMessageId', { - token: token, + token, id: parseInt(response.headers['x-chat-last-given'], 10), }) } @@ -644,8 +644,8 @@ const actions = { const conversation = context.getters.conversation(token) if (conversation && conversation.lastMessage && lastMessage.id > conversation.lastMessage.id) { context.dispatch('updateConversationLastMessage', { - token: token, - lastMessage: lastMessage, + token, + lastMessage, }) } |