mirror of
https://github.com/thelounge/thelounge.git
synced 2024-06-01 05:12:24 +02:00
Do not try loading history while disconnected
This commit is contained in:
parent
ee4de6a871
commit
51147f35b2
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue