refactor: don't call setActiveChat

This commit is contained in:
Shivam Mishra
2023-11-30 12:56:38 +05:30
parent 4429e95f2b
commit 2c505eef43
@@ -163,14 +163,7 @@ export default {
return;
}
const { messageId } = this.$route.query;
this.$store
.dispatch('setActiveChat', {
data: selectedConversation,
after: messageId,
})
.then(() => {
bus.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE, { messageId });
});
bus.$emit(BUS_EVENTS.SCROLL_TO_MESSAGE, { messageId });
} else {
this.$store.dispatch('clearSelectedState');
}