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

This commit is contained in:
damencho 2017-10-13 16:05:06 -05:00 committed by yanas
parent 003eb68e28
commit b1b3807e9b
1 changed files with 7 additions and 0 deletions

View File

@ -1716,6 +1716,13 @@ export default {
if (isButtonEnabled('chat')) {
room.on(JitsiConferenceEvents.MESSAGE_RECEIVED, (id, body, ts) => {
let nick = getDisplayName(id);
if (!nick) {
nick =
`${interfaceConfig.DEFAULT_REMOTE_DISPLAY_NAME} (${
id})`;
}
APP.API.notifyReceivedChatMessage({
id,
nick,