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

Display destination in private messages.

This commit is contained in:
Juliusz Chroboczek 2020-10-05 20:48:44 +02:00
parent bda58b42c6
commit 179b57a986

View file

@ -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) {