chore: MInor fix

This commit is contained in:
iamsivin
2025-05-23 12:51:40 +05:30
parent e973309610
commit d3e3809118
5 changed files with 36 additions and 7 deletions
@@ -1,5 +1,6 @@
<script>
import { useAlert } from 'dashboard/composables';
import { inject } from 'vue';
import { mapGetters } from 'vuex';
import { useMessageFormatter } from 'shared/composables/useMessageFormatter';
import ContextMenu from 'dashboard/components/ui/ContextMenu.vue';
@@ -47,8 +48,10 @@ export default {
emits: ['open', 'close', 'replyTo', 'forwardEmail'],
setup() {
const { getPlainText } = useMessageFormatter();
const conversationPanelRef = inject('conversationPanelRef', null);
return {
getPlainText,
conversationPanelRef,
};
},
data() {
@@ -63,7 +66,7 @@ export default {
currentAccountId: 'getCurrentAccountId',
}),
conversationPanelElement() {
return document.querySelector('.conversation-panel');
return this.conversationPanelRef?.$el;
},
plainTextContent() {
return this.getPlainText(this.messageContent);