Fixes display name for incoming chat messages, sender doesn't have nick.
This commit is contained in:
parent
003eb68e28
commit
b1b3807e9b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue