File tree Expand file tree Collapse file tree 3 files changed +0
-32
lines changed
Expand file tree Collapse file tree 3 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -735,17 +735,6 @@ const ChannelWithContext = <
735735
736736 useAppStateListener ( undefined , handleAppBackground ) ;
737737
738- /**
739- * CHANNEL CONSTANTS
740- */
741- const isAdmin = client ?. user ?. role === 'admin' || channel ?. state . membership . role === 'admin' ;
742-
743- const isModerator =
744- channel ?. state . membership . role === 'channel_moderator' ||
745- channel ?. state . membership . role === 'moderator' ;
746-
747- const isOwner = channel ?. state . membership . role === 'owner' ;
748-
749738 /**
750739 * CHANNEL METHODS
751740 */
@@ -2236,10 +2225,7 @@ const ChannelWithContext = <
22362225 ! ! ( clientChannelConfig ?. commands || [ ] ) ?. some ( ( command ) => command . name === 'giphy' ) ,
22372226 hideDateSeparators,
22382227 hideStickyDateHeader,
2239- isAdmin,
22402228 isChannelActive : shouldSyncChannel ,
2241- isModerator,
2242- isOwner,
22432229 lastRead,
22442230 loadChannelAroundMessage,
22452231 loadChannelAtMessage,
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ export const useCreateChannelContext = <
1515 giphyEnabled,
1616 hideDateSeparators,
1717 hideStickyDateHeader,
18- isAdmin,
1918 isChannelActive,
20- isModerator,
21- isOwner,
2219 lastRead,
2320 loadChannelAroundMessage,
2421 loadChannelAtMessage,
@@ -59,10 +56,7 @@ export const useCreateChannelContext = <
5956 giphyEnabled,
6057 hideDateSeparators,
6158 hideStickyDateHeader,
62- isAdmin,
6359 isChannelActive,
64- isModerator,
65- isOwner,
6660 lastRead,
6761 loadChannelAroundMessage,
6862 loadChannelAtMessage,
Original file line number Diff line number Diff line change @@ -60,18 +60,6 @@ export type ChannelContextValue<
6060 */
6161 hideDateSeparators : boolean ;
6262 hideStickyDateHeader : boolean ;
63- /**
64- * Returns true if the current user has admin privileges
65- */
66- isAdmin : boolean ;
67- /**
68- * Returns true if the current user is a moderator
69- */
70- isModerator : boolean ;
71- /**
72- * Returns true if the current user is a owner
73- */
74- isOwner : boolean ;
7563 /**
7664 * Loads channel around a specific message
7765 *
You can’t perform that action at this time.
0 commit comments