Commit 179b57a9 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Display destination in private messages.

parent bda58b42
...@@ -1261,7 +1261,7 @@ function addToChatbox(peerId, dest, nick, time, kind, message) { ...@@ -1261,7 +1261,7 @@ function addToChatbox(peerId, dest, nick, time, kind, message) {
lastMessage.dest !== (dest || null)) { lastMessage.dest !== (dest || null)) {
let header = document.createElement('p'); let header = document.createElement('p');
let user = document.createElement('span'); let user = document.createElement('span');
user.textContent = nick; user.textContent = dest ? `${nick} \u2192 ${users[dest]}` : nick;
user.classList.add('message-user'); user.classList.add('message-user');
header.appendChild(user); header.appendChild(user);
if(time) { if(time) {
......
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