@@ -47,7 +47,7 @@ const Chat = ({
4747 rooms,
4848 messages,
4949 app : {
50- configs : { indicators, tenantId, apiKey, subscriptionKey , projectName } ,
50+ configs : { indicators, tenantId, apiKey, projectId } ,
5151 } ,
5252 } ,
5353 dispatch,
@@ -94,8 +94,7 @@ const Chat = ({
9494 //handle Log params
9595 {
9696 apiKey,
97- subscriptionKey,
98- projectName,
97+ projectId,
9998 chatAuthId : selfUser ! . chatAuthId ,
10099 } ,
101100 ) ;
@@ -114,8 +113,7 @@ const Chat = ({
114113 //handle Log params
115114 {
116115 apiKey,
117- subscriptionKey,
118- projectName,
116+ projectId,
119117 chatAuthId : selfUser ! . chatAuthId ,
120118 } ,
121119 ) ;
@@ -208,8 +206,7 @@ const Chat = ({
208206 //handle Log params
209207 {
210208 apiKey,
211- subscriptionKey,
212- projectName,
209+ projectId,
213210 chatAuthId : selfUser ! . chatAuthId ,
214211 } ,
215212 ) ;
@@ -245,9 +242,11 @@ const Chat = ({
245242 renderCustomView = { ( props : BubbleProps < ICustomMessage > ) => (
246243 < CustomUsernameView { ...props } activeRoom = { activeRoom } />
247244 ) }
248- renderAvatar = { ( props ) => (
249- < CustomAvatar { ...props } activeRoom = { activeRoom } />
250- ) }
245+ renderAvatar = { ( props ) =>
246+ activeRoom ?. groupAvatar && (
247+ < CustomAvatar { ...props } activeRoom = { activeRoom } />
248+ )
249+ }
251250 renderAvatarOnTop = { true }
252251 renderChatFooter = { renderChatFooter }
253252 renderSystemMessage = { CustomSystemMessage }
0 commit comments