We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97712fe commit 09ba04eCopy full SHA for 09ba04e
1 file changed
packages/api/src/EmbeddedChatApi.ts
@@ -618,7 +618,6 @@ export default class EmbeddedChatApi {
618
}
619
620
621
-
622
async sendTypingStatus(username: string, typing: boolean) {
623
try {
624
await this.sdk.call(
@@ -897,7 +896,13 @@ export default class EmbeddedChatApi {
897
896
898
async getMessageLimit() {
899
900
- return await this._restRequest("/v1/settings/Message_MaxAllowedSize");
+ const response = await this._restRequest(
+ "/v1/settings.public?_id=Message_MaxAllowedSize"
901
+ );
902
+ if (response && response.success && response.settings && response.settings.length > 0) {
903
+ return response.settings[0];
904
+ }
905
+ return null;
906
} catch (err: any) {
907
console.error(err instanceof Error ? err.message : err);
908
return err;
0 commit comments