Do not try loading history while disconnected
This commit is contained in:
parent
ee4de6a871
commit
51147f35b2
@ -228,6 +228,10 @@ export default {
|
||||
});
|
||||
},
|
||||
onShowMoreClick() {
|
||||
if (!this.$root.isConnected) {
|
||||
return;
|
||||
}
|
||||
|
||||
let lastMessage = this.channel.messages[0];
|
||||
lastMessage = lastMessage ? lastMessage.id : -1;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user