1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25:58 +01:00

Allow displaying chat messages when unconnected.

This makes commands such as /set work before you connect.
This commit is contained in:
Juliusz Chroboczek 2022-03-25 16:30:31 +01:00
parent 2eca0e44d5
commit d8db7567e4

View file

@ -2999,7 +2999,7 @@ function addToChatbox(peerId, dest, nick, time, privileged, history, kind, messa
footer.classList.add('message-footer');
if(!peerId)
container.classList.add('message-system');
if(peerId === serverConnection.id)
if(serverConnection && peerId === serverConnection.id)
container.classList.add('message-sender');
if(dest)
container.classList.add('message-private');