stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
17 lines (15 loc) • 426 B
text/typescript
import { fromPartial } from '@total-typescript/shoehorn';
import type { Event, Mute, StreamChat } from 'stream-chat';
export default (client: StreamChat, mutes: Mute[] = []) => {
client.dispatchEvent(
fromPartial<Event>({
created_at: '2020-05-26T07:11:57.968294216Z',
me: {
...client.user,
channel_mutes: [],
mutes,
},
type: 'notification.mutes_updated',
}),
);
};