mirror of
https://github.com/owncast/owncast.git
synced 2025-11-02 20:23:29 +08:00
Show moderation menu for moderators. Closes #1864
This commit is contained in:
@ -17,15 +17,13 @@ import ChatJoinMessage from '../ChatJoinMessage/ChatJoinMessage';
|
||||
|
||||
interface Props {
|
||||
messages: ChatMessage[];
|
||||
// loading: boolean;
|
||||
usernameToHighlight: string;
|
||||
chatUserId: string;
|
||||
isModerator: boolean;
|
||||
isMobile: boolean | undefined;
|
||||
}
|
||||
|
||||
export default function ChatContainer(props: Props) {
|
||||
const { messages, usernameToHighlight, chatUserId, isModerator, isMobile } = props;
|
||||
const { messages, usernameToHighlight, chatUserId, isModerator } = props;
|
||||
|
||||
const [atBottom, setAtBottom] = useState(false);
|
||||
// const [showButton, setShowButton] = useState(false);
|
||||
@ -146,7 +144,7 @@ export default function ChatContainer(props: Props) {
|
||||
)}
|
||||
</>
|
||||
),
|
||||
[messages, usernameToHighlight, chatUserId, isModerator, atBottom, isMobile],
|
||||
[messages, usernameToHighlight, chatUserId, isModerator, atBottom],
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user