Ver código fonte

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

j8
damencho 7 anos atrás
pai
commit
b1b3807e9b
1 arquivos alterados com 7 adições e 0 exclusões
  1. 7
    0
      conference.js

+ 7
- 0
conference.js Ver arquivo

@@ -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,

Carregando…
Cancelar
Salvar