mirror of
https://github.com/thelounge/thelounge
synced 2024-11-15 00:37:13 +00:00
Fix history not loading on channel switch
This commit is contained in:
parent
207ab28b92
commit
2ab3518c52
1 changed files with 11 additions and 0 deletions
|
@ -113,6 +113,17 @@ export default {
|
|||
},
|
||||
},
|
||||
watch: {
|
||||
"channel.id"() {
|
||||
if (this.$refs.loadMoreButton) {
|
||||
this.$nextTick(() => {
|
||||
const bounding = this.$refs.loadMoreButton.getBoundingClientRect();
|
||||
|
||||
if (bounding.top >= 0) {
|
||||
this.$refs.loadMoreButton.click();
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
"channel.messages"() {
|
||||
const el = this.$refs.chat;
|
||||
|
||||
|
|
Loading…
Reference in a new issue