diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-03-08 18:04:16 +0300 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-03-08 18:22:17 +0300 |
commit | c26d5e32d2a0d9edb52f360095aae3c60d707163 (patch) | |
tree | ccfe6b8508a05e0a7eed16355de71e3a9102bbd6 /src/components/NewMessageForm | |
parent | 7d4d6fbf2f07184df9021cbfafe3732ba95e86da (diff) |
Update read marker UI when posting + tweaks
When posting new messages, the read marker UI will also be updated.
Fixed read marker update when scrolled to bottom.
Fixed warnings related to temporary message id being a string.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'src/components/NewMessageForm')
-rw-r--r-- | src/components/NewMessageForm/NewMessageForm.vue | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/NewMessageForm/NewMessageForm.vue b/src/components/NewMessageForm/NewMessageForm.vue index a545488d6..c16c5a101 100644 --- a/src/components/NewMessageForm/NewMessageForm.vue +++ b/src/components/NewMessageForm/NewMessageForm.vue @@ -339,9 +339,10 @@ export default { }) } if (message.id > this.conversation.lastReadMessage) { - this.$store.dispatch('updateConversationLastReadMessage', { + this.$store.dispatch('updateLastReadMessage', { token: this.token, - lastReadMessage: message.id, + id: message.id, + updateVisually: true, }) } } catch (error) { |