diff --git a/app/javascript/gabsocial/features/messages/components/chat_message_header.js b/app/javascript/gabsocial/features/messages/components/chat_message_header.js
index 81257f9e..1d806d6f 100644
--- a/app/javascript/gabsocial/features/messages/components/chat_message_header.js
+++ b/app/javascript/gabsocial/features/messages/components/chat_message_header.js
@@ -4,9 +4,11 @@ import ImmutablePureComponent from 'react-immutable-pure-component'
import ImmutablePropTypes from 'react-immutable-proptypes'
import { connect } from 'react-redux'
import { makeGetChatConversation } from '../../../selectors'
-import { openModal } from '../../../actions/modal'
+import { openPopover } from '../../../actions/popover'
import { approveChatConversationRequest } from '../../../actions/chat_conversations'
-import { MODAL_CHAT_CONVERSATION_CREATE } from '../../../constants'
+import {
+ POPOVER_CHAT_CONVERSATION_OPTIONS
+} from '../../../constants'
import Button from '../../../components/button'
import AvatarGroup from '../../../components/avatar_group'
import DisplayName from '../../../components/display_name'
@@ -18,6 +20,14 @@ class ChatMessageHeader extends React.PureComponent {
this.props.onApproveChatConversationRequest(this.props.chatConversationId)
}
+ handleOnOpenChatConversationOptionsPopover = () => {
+ this.props.onOpenChatConversationOptionsPopover(this.props.chatConversationId, this.optionsBtnRef)
+ }
+
+ setOptionsBtnRef = (c) => {
+ this.optionsBtnRef = c
+ }
+
render () {
const { chatConversation } = this.props
@@ -37,8 +47,9 @@ class ChatMessageHeader extends React.PureComponent {
}