mirror of
https://github.com/thelounge/thelounge.git
synced 2024-05-17 13:46:36 +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() {
|
||||
if (!this.$root.isConnected) {
|
||||
return;
|
||||
}
|
||||
|
||||
let lastMessage = this.channel.messages[0];
|
||||
lastMessage = lastMessage ? lastMessage.id : -1;
|
||||
|
||||
|
|
Loading…
Reference in a new issue