File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -618,7 +618,6 @@ export default class EmbeddedChatApi {
618618 }
619619 }
620620
621-
622621 async sendTypingStatus ( username : string , typing : boolean ) {
623622 try {
624623 await this . sdk . call (
@@ -897,7 +896,18 @@ export default class EmbeddedChatApi {
897896
898897 async getMessageLimit ( ) {
899898 try {
900- return await this . _restRequest ( "/v1/settings/Message_MaxAllowedSize" ) ;
899+ const response = await this . _restRequest (
900+ "/v1/settings.public?_id=Message_MaxAllowedSize"
901+ ) ;
902+ if (
903+ response &&
904+ response . success &&
905+ response . settings &&
906+ response . settings . length > 0
907+ ) {
908+ return response . settings [ 0 ] ;
909+ }
910+ return null ;
901911 } catch ( err : any ) {
902912 console . error ( err instanceof Error ? err . message : err ) ;
903913 return err ;
Original file line number Diff line number Diff line change @@ -178,6 +178,7 @@ const useFetchChatData = (showRoles) => {
178178 RCInstance ,
179179 showRoles ,
180180 setMessages ,
181+ setMessagesOffset ,
181182 setMemberRoles ,
182183 ]
183184 ) ;
You can’t perform that action at this time.
0 commit comments