This commit is contained in:
adb 2021-03-22 22:54:23 +01:00
parent 433fbac3fa
commit 7c1d994dc2
2 changed files with 2 additions and 3 deletions

View File

@ -68,7 +68,7 @@ export default {
} }
}, },
updated(){ updated(){
if(this.scroll.getScrollBottom() < 400) this.scroll.scrollToBottom(); if(this.scroll.getScrollBottom() < 350) this.scroll.scrollToBottom();
}, },
mounted(){ mounted(){
this.scroll = new scrollHandler(this.$refs.msgContainer); this.scroll = new scrollHandler(this.$refs.msgContainer);

View File

@ -45,10 +45,9 @@ export default {
}, },
methods:{ methods:{
openChat(room){ openChat(room){
this.showChatInfo = false;
this.currentRoom = undefined this.currentRoom = undefined
this.$nextTick(() => this.currentRoom = room); this.$nextTick(() => this.currentRoom = room);
this.showChatInfo = false;
this.currentRoom = room;
this.$router.push(`/rooms/${room.roomId}`); this.$router.push(`/rooms/${room.roomId}`);
this.search = ''; this.search = '';
}, },