Hello,
Our app is written in TypeScript. We are running a very old version of your SDK (3.0.98). We are trying to upgrade to the latest (3.0.137). In that processes we have found that we need to update some types. Where ever we use a message type filter, we would use the values of 0, 1, 2, 3 to represent all, user(message), file, admin respectively.
I didn’t find any official SendBird enum that could be used as value for this.
The closes thing I could find was in your Types File (SendBird.d.s) I have seen something like
interface UserMessage extends BaseMessageInstance {
messageType: ‘user’;
…
}
That does not seem to match what is needed by:
interface PreviousMessageListQuery {
…
messageTypeFilter: 0 | 1 | 2 | 3; // 0: ALL, 1: USER, 2: FILE, 3: ADMIN
…
}
Am I doing something wrong or do your types need updating? If PreviousMessageListQuery does need updating I can propose a PR that may help here.
Thank you