UNPKG

stream-chat-react

Version:

React components to create chat conversations or livestream style chat

17 lines (16 loc) 646 B
type UseMarkReadParams = { isMessageListScrolledToBottom: boolean; messageListIsThread: boolean; wasMarkedUnread?: boolean; }; /** * Takes care of marking a channel read. The channel is read only if all the following applies: * 1. the message list is not rendered in a thread * 2. the message list is scrolled to the bottom * 3. the channel was not marked unread by the user * @param isMessageListScrolledToBottom * @param messageListIsThread * @param wasChannelMarkedUnread */ export declare const useMarkRead: ({ isMessageListScrolledToBottom, messageListIsThread, wasMarkedUnread, }: UseMarkReadParams) => void; export {};