Fix duplicate messages on channel join
This commit is contained in:
parent
771739cf94
commit
c84eee22f2
@ -116,11 +116,11 @@ export default {
|
||||
},
|
||||
watch: {
|
||||
"channel.id"() {
|
||||
if (this.$refs.loadMoreButton) {
|
||||
if (this.channel.moreHistoryAvailable && this.$refs.loadMoreButton) {
|
||||
this.$nextTick(() => {
|
||||
const bounding = this.$refs.loadMoreButton.getBoundingClientRect();
|
||||
|
||||
if (bounding.top >= 0) {
|
||||
if (bounding.width > 0 && bounding.top >= 0) {
|
||||
this.$refs.loadMoreButton.click();
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user