File tree 3 files changed +0
-32
lines changed
3 files changed +0
-32
lines changed Original file line number Diff line number Diff line change @@ -735,17 +735,6 @@ const ChannelWithContext = <
735
735
736
736
useAppStateListener ( undefined , handleAppBackground ) ;
737
737
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
-
749
738
/**
750
739
* CHANNEL METHODS
751
740
*/
@@ -2236,10 +2225,7 @@ const ChannelWithContext = <
2236
2225
! ! ( clientChannelConfig ?. commands || [ ] ) ?. some ( ( command ) => command . name === 'giphy' ) ,
2237
2226
hideDateSeparators,
2238
2227
hideStickyDateHeader,
2239
- isAdmin,
2240
2228
isChannelActive : shouldSyncChannel ,
2241
- isModerator,
2242
- isOwner,
2243
2229
lastRead,
2244
2230
loadChannelAroundMessage,
2245
2231
loadChannelAtMessage,
Original file line number Diff line number Diff line change @@ -15,10 +15,7 @@ export const useCreateChannelContext = <
15
15
giphyEnabled,
16
16
hideDateSeparators,
17
17
hideStickyDateHeader,
18
- isAdmin,
19
18
isChannelActive,
20
- isModerator,
21
- isOwner,
22
19
lastRead,
23
20
loadChannelAroundMessage,
24
21
loadChannelAtMessage,
@@ -59,10 +56,7 @@ export const useCreateChannelContext = <
59
56
giphyEnabled,
60
57
hideDateSeparators,
61
58
hideStickyDateHeader,
62
- isAdmin,
63
59
isChannelActive,
64
- isModerator,
65
- isOwner,
66
60
lastRead,
67
61
loadChannelAroundMessage,
68
62
loadChannelAtMessage,
Original file line number Diff line number Diff line change @@ -60,18 +60,6 @@ export type ChannelContextValue<
60
60
*/
61
61
hideDateSeparators : boolean ;
62
62
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 ;
75
63
/**
76
64
* Loads channel around a specific message
77
65
*
You can’t perform that action at this time.
0 commit comments