Reset scrolledToBottom when channel changes

This commit is contained in:
Pavel Djundik 2018-07-13 23:07:16 +03:00 committed by Pavel Djundik
parent 7e5e031ea8
commit efdf11dcae

View File

@ -115,8 +115,10 @@ export default {
},
},
watch: {
"channel.messages"() {
"channel.id"() {
this.scrolledToBottom = true;
},
"channel.messages"() {
this.keepScrollPosition();
},
},