Do not try loading history while disconnected

This commit is contained in:
Pavel Djundik 2019-10-17 12:38:46 +03:00
parent ee4de6a871
commit 51147f35b2

View File

@ -228,6 +228,10 @@ export default {
}); });
}, },
onShowMoreClick() { onShowMoreClick() {
if (!this.$root.isConnected) {
return;
}
let lastMessage = this.channel.messages[0]; let lastMessage = this.channel.messages[0];
lastMessage = lastMessage ? lastMessage.id : -1; lastMessage = lastMessage ? lastMessage.id : -1;