You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Add types of GroupChat and OpenChat for SendbirdChat (#518)
### Description Of Changes
Issue
* Customer had to use the type assertion for removing type error
```javascript
const globalState = useSendbirdStateContext()
const getSdk = sendbirdSelectors.getSdk(globalState) as SendbirdGroupChat;
getSdk.groupChannel.getTotalUnreadMessageCount();
```
Fix
* Specify the `getSdk` returns SendbirdGroupChat or SendbirdOpenChat
0 commit comments