File tree Expand file tree Collapse file tree 3 files changed +3
-10
lines changed
components/ChannelPreview/hooks Expand file tree Collapse file tree 3 files changed +3
-10
lines changed Original file line number Diff line number Diff line change @@ -8,9 +8,7 @@ import { useChatContext } from '../../../contexts/chatContext/ChatContext';
88 *
99 * @returns {boolean } e.g., true
1010 */
11- export const useChannelPreviewDisplayPresence = (
12- channel : Channel ,
13- ) => {
11+ export const useChannelPreviewDisplayPresence = ( channel : Channel ) => {
1412 const { client } = useChatContext ( ) ;
1513 const members = channel . state . members ;
1614 const membersCount = Object . keys ( members ) . length ;
Original file line number Diff line number Diff line change @@ -4,16 +4,13 @@ import type { Channel } from 'stream-chat';
44
55import { useChatContext } from '../../../contexts/chatContext/ChatContext' ;
66
7-
87const defaultMuteStatus = {
98 createdAt : null ,
109 expiresAt : null ,
1110 muted : false ,
1211} ;
1312
14- export const useIsChannelMuted = (
15- channel : Channel ,
16- ) => {
13+ export const useIsChannelMuted = ( channel : Channel ) => {
1714 const { client } = useChatContext ( ) ;
1815
1916 const [ muted , setMuted ] = useState ( ( ) => channel . muteStatus ( ) ) ;
Original file line number Diff line number Diff line change @@ -4,9 +4,7 @@ import { useTranslationContext } from '../contexts/translationContext/Translatio
44
55type TranslationKey = `${TranslationLanguages } _text`;
66
7- export const useTranslatedMessage = (
8- message ?: MessageResponse | FormatMessageResponse ,
9- ) => {
7+ export const useTranslatedMessage = ( message ?: MessageResponse | FormatMessageResponse ) => {
108 const { userLanguage } = useTranslationContext ( ) ;
119
1210 const translationKey : TranslationKey = `${ userLanguage } _text` ;
You can’t perform that action at this time.
0 commit comments