Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
Get chat message display name from backend
Bettenbuk Zoltane7144eb67495
diff --git a/package-lock.json b/package-lock.jsonindex 944849a0ff..310d3be7e1 100644--- a/package-lock.json+++ b/package-lock.json@@ -9073,8 +9073,8 @@}},"lib-jitsi-meet": {- "version": "github:jitsi/lib-jitsi-meet#3c8058743177b6b6963d3bc3df14f4ea650ef310",- "from": "github:jitsi/lib-jitsi-meet#3c8058743177b6b6963d3bc3df14f4ea650ef310",+ "version": "github:jitsi/lib-jitsi-meet#502ba82e1e4e4cdf8fe768566b6414f5c100491a",+ "from": "github:jitsi/lib-jitsi-meet#502ba82e1e4e4cdf8fe768566b6414f5c100491a","requires": {"@jitsi/sdp-interop": "0.1.14","@jitsi/sdp-simulcast": "0.2.1",diff --git a/package.json b/package.jsonindex ba24ae8aac..35b127d460 100644--- a/package.json+++ b/package.json@@ -54,7 +54,7 @@"js-utils": "github:jitsi/js-utils#192b1c996e8c05530eb1f19e82a31069c3021e31","jsrsasign": "8.0.12","jwt-decode": "2.2.0",- "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#3c8058743177b6b6963d3bc3df14f4ea650ef310",+ "lib-jitsi-meet": "github:jitsi/lib-jitsi-meet#502ba82e1e4e4cdf8fe768566b6414f5c100491a","libflacjs": "github:mmig/libflac.js#93d37e7f811f01cf7d8b6a603e38bd3c3810907d","lodash": "4.17.11","moment": "2.19.4",diff --git a/react/features/chat/components/native/ChatMessage.js b/react/features/chat/components/native/ChatMessage.jsindex 9c6f11efa4..692669514e 100644--- a/react/features/chat/components/native/ChatMessage.js+++ b/react/features/chat/components/native/ChatMessage.js@@ -74,10 +74,13 @@ class ChatMessage extends AbstractChatMessage<Props> {* @returns {React$Element<*>}*/_renderAvatar() {+ const { message } = this.props;+return (<View style = { styles.avatarWrapper }>{ this.props.showAvatar && <Avatar- participantId = { this.props.message.id }+ displayName = { message.displayName }+ participantId = { message.id }size = { styles.avatarWrapper.width } />}</View>diff --git a/react/features/chat/middleware.js b/react/features/chat/middleware.jsindex 433ee55de9..d5241e861f 100644--- a/react/features/chat/middleware.js+++ b/react/features/chat/middleware.js@@ -115,7 +115,7 @@ function _addChatMsgListener(conference, { dispatch, getState }) {conference.on(JitsiConferenceEvents.MESSAGE_RECEIVED,- (id, message, timestamp) => {+ (id, message, timestamp, nick) => {// Logic for all platforms:const state = getState();const { isOpen: isChatOpen } = state['features/chat'];@@ -127,7 +127,7 @@ function _addChatMsgListener(conference, { dispatch, getState }) {// Provide a default for for the case when a message is being// backfilled for a participant that has left the conference.const participant = getParticipantById(state, id) || {};- const displayName = getParticipantDisplayName(getState, id);+ const displayName = participant.name || nick || getParticipantDisplayName(state, id);const hasRead = participant.local || isChatOpen;const timestampToDate = timestamp? new Date(timestamp) : new Date();