mirror of
https://github.com/thelounge/thelounge
synced 2024-11-21 19:43:07 +00:00
server: fix init client
This commit is contained in:
parent
46f3fd9682
commit
60486bf5e3
1 changed files with 2 additions and 2 deletions
|
@ -640,13 +640,13 @@ function initializeClient(
|
|||
return;
|
||||
}
|
||||
|
||||
const message = networkAndChan.chan.findMessage(data.msgId);
|
||||
const message = data.msgId ? networkAndChan.chan.findMessage(data.msgId) : null;
|
||||
|
||||
if (!message) {
|
||||
return;
|
||||
}
|
||||
|
||||
const preview = message.findPreview(data.link);
|
||||
const preview = data.link ? message.findPreview(data.link) : null;
|
||||
|
||||
if (preview) {
|
||||
preview.shown = newState;
|
||||
|
|
Loading…
Reference in a new issue