Commit d8db7567 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Allow displaying chat messages when unconnected.

This makes commands such as /set work before you connect.
parent 2eca0e44
...@@ -2999,7 +2999,7 @@ function addToChatbox(peerId, dest, nick, time, privileged, history, kind, messa ...@@ -2999,7 +2999,7 @@ function addToChatbox(peerId, dest, nick, time, privileged, history, kind, messa
footer.classList.add('message-footer'); footer.classList.add('message-footer');
if(!peerId) if(!peerId)
container.classList.add('message-system'); container.classList.add('message-system');
if(peerId === serverConnection.id) if(serverConnection && peerId === serverConnection.id)
container.classList.add('message-sender'); container.classList.add('message-sender');
if(dest) if(dest)
container.classList.add('message-private'); container.classList.add('message-private');
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment