fix: route push fixes

This commit is contained in:
Muhsin Keloth
2024-02-07 14:02:29 +05:30
parent 733a851607
commit ecfa19bb1a
2 changed files with 3 additions and 3 deletions
@@ -97,8 +97,8 @@ export default {
methods: {
redirectToInbox() {
if (!this.conversationId) return;
if (this.$route.name === 'inbox') return;
this.$router.push({ name: 'inbox' });
if (this.$route.name === 'inbox-view') return;
this.$router.push({ name: 'inbox-view' });
},
loadMoreNotifications() {
if (this.uiFlags.isAllNotificationsLoaded) return;
@@ -132,7 +132,7 @@ export default {
.then(() => {
this.showAlert(this.$t('INBOX.ALERTS.DELETE'));
});
this.$router.push({ name: 'inbox' });
this.$router.push({ name: 'inbox-view' });
},
onClickNext() {
this.$emit('next');