Skip to content

Commit 77cbfa0

Browse files
authored
chore: clean up GroupChannel and GroupChannelList modules (#956)
- clean up code and types in collection modules. - remove unused code
1 parent 6cfe14c commit 77cbfa0

File tree

11 files changed

+238
-469
lines changed

11 files changed

+238
-469
lines changed

src/modules/GroupChannel/components/MessageInputWrapper/MessageInputWrapperView.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ import type {
1212
} from '@sendbird/chat/message';
1313

1414
import {
15-
isOperator as isChannelOperator,
1615
isDisabledBecauseFrozen,
1716
isDisabledBecauseMuted,
1817
} from '../../context/utils';
@@ -89,7 +88,7 @@ export const MessageInputWrapperView = React.forwardRef((
8988
const { maxMentionCount, maxSuggestionCount } = userMention;
9089

9190
const isBroadcast = currentChannel?.isBroadcast;
92-
const isOperator = isChannelOperator(currentChannel);
91+
const isOperator = currentChannel?.myRole === 'operator';
9392

9493
// States
9594
const [mentionNickname, setMentionNickname] = useState('');

0 commit comments

Comments
 (0)