Browse Source

Fixes display name for incoming chat messages, sender doesn't have nick.

master
damencho 7 years ago
parent
commit
b1b3807e9b
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      conference.js

+ 7
- 0
conference.js View File

@@ -1716,6 +1716,13 @@ export default {
1716 1716
             if (isButtonEnabled('chat')) {
1717 1717
                 room.on(JitsiConferenceEvents.MESSAGE_RECEIVED, (id, body, ts) => {
1718 1718
                     let nick = getDisplayName(id);
1719
+
1720
+                    if (!nick) {
1721
+                        nick =
1722
+                            `${interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME} (${
1723
+                                id})`;
1724
+                    }
1725
+
1719 1726
                     APP.API.notifyReceivedChatMessage({
1720 1727
                         id,
1721 1728
                         nick,

Loading…
Cancel
Save