stream-chat-react-native-core
Version:
The official React Native and Expo components for Stream Chat, a service for building chat applications
13 lines (11 loc) • 364 B
text/typescript
import { fromPartial } from '@total-typescript/shoehorn';
import type { ChannelResponse, Event, StreamChat } from 'stream-chat';
export default (client: StreamChat, channel: Partial<ChannelResponse> = {}) => {
client.dispatchEvent(
fromPartial<Event>({
channel,
cid: channel.cid,
type: 'notification.removed_from_channel',
}),
);
};