From efdf11dcaed733b73bf1e1ef13548a514f8c7c7a Mon Sep 17 00:00:00 2001 From: Pavel Djundik Date: Fri, 13 Jul 2018 23:07:16 +0300 Subject: [PATCH] Reset scrolledToBottom when channel changes --- client/components/MessageList.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/client/components/MessageList.vue b/client/components/MessageList.vue index 78ce4c30..3b1fb836 100644 --- a/client/components/MessageList.vue +++ b/client/components/MessageList.vue @@ -115,8 +115,10 @@ export default { }, }, watch: { - "channel.messages"() { + "channel.id"() { this.scrolledToBottom = true; + }, + "channel.messages"() { this.keepScrollPosition(); }, },