diff --git a/pkg/interface/src/views/apps/chat/components/ChatInput.tsx b/pkg/interface/src/views/apps/chat/components/ChatInput.tsx index 720f2a77e4..8e9cfef294 100644 --- a/pkg/interface/src/views/apps/chat/components/ChatInput.tsx +++ b/pkg/interface/src/views/apps/chat/components/ChatInput.tsx @@ -170,7 +170,7 @@ class ChatInput extends Component { className='cf' zIndex={0} > - + {avatar} { + return ( + + + {props.children} + + + ); +}; + +const MessageActions = ({ api, history, msg, group }) => { + const isAdmin = () => group.tags.role.admin.has(window.ship); + const isOwn = () => msg.author === window.ship; + return ( + + + {isOwn() ? ( + console.log(e)} + > + + + ) : null} + console.log(e)} + > + + + + {isOwn() ? ( + console.log(e)}> + Edit Message + + ) : null} + console.log(e)}> + Reply + + console.log(e)}> + Copy Message Link + + {isAdmin() || isOwn() ? ( + console.log(e)} color='red'> + Delete Message + + ) : null} + console.log(e)}> + View Signature + + + } + > + + + + + + + ); +}; + +const MessageWrapper = (props) => { + const { hovering, bind } = useHovering(); + return ( + + {props.children} + {/* {hovering ? : null} */} + + ); +}; + interface ChatMessageProps { msg: Post; previousMsg?: Post; @@ -195,7 +310,7 @@ class ChatMessage extends Component { { ) : null} {renderSigil ? ( - <> + - + ) : ( - + + + )} {isLastRead ? ( @@ -406,8 +523,8 @@ export const Message = ({