mirror of
https://github.com/jech/galene.git
synced 2024-11-26 02: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:
parent
2eca0e44d5
commit
d8db7567e4
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||||
|
|
Loading…
Reference in a new issue