Revert "feat: remove click action"

This reverts commit 39e748bd739d8849a01e51b78e5db3c440d7c803.
This commit is contained in:
Shivam Mishra
2023-11-30 13:08:49 +05:30
parent 20dac9d77b
commit 9cc6275c82
4 changed files with 27 additions and 2 deletions
@@ -29,6 +29,7 @@
v-if="shouldShowReplyToMessage"
:message="inReplyTo"
@dismiss="resetReplyToMessage"
@navigate-to-message="navigateToMessage"
/>
<canned-response
v-if="showMentions && hasSlashCommand"
@@ -1158,6 +1159,12 @@ export default {
LocalStorage.deleteFromJsonStore(replyStorageKey, this.conversationId);
bus.$emit(BUS_EVENTS.TOGGLE_REPLY_TO_MESSAGE);
},
navigateToMessage(messageId) {
bus.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE, {
messageId,
behavior: 'instant',
});
},
onNewConversationModalActive(isActive) {
// Issue is if the new conversation modal is open and we drag and drop the file
// then the file is not getting attached to the new conversation modal