Bug report: getMetadata() and setMetadata() has wrong type in TypeScript

According to the TypeScript definition the type of getMetadata and setMetadata should be a string:

getMetadata(): string;
setMetadata(metadata: string): void;

However it should actually not be a string but an object

Hello @Thijs,

We have created an issue internally and are working on it. We will update you once this is resolved.

Warm Regards,

CometChat Pro
Mayur Bhandari

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

Hello @Thijs ,

We have fixed this issue in the latest SDK v2.1.1. Can you please update to the latest SDK and check if it works on your end.

Warm Regards,

CometChat Pro
Mayur Bhandari