Shivam Mishra
2024-10-02 13:06:30 +05:30
committed by GitHub
parent e0bf2bd9d4
commit 42f6621afb
661 changed files with 15939 additions and 31194 deletions

View File

@@ -85,7 +85,8 @@ class ReconnectService {
};
fetchConversationMessagesOnReconnect = async () => {
const { conversation_id: conversationId } = this.router.currentRoute.params;
const { conversation_id: conversationId } =
this.router.currentRoute.value.params;
if (conversationId) {
await this.store.dispatch('syncActiveConversationMessages', {
conversationId: Number(conversationId),
@@ -109,7 +110,7 @@ class ReconnectService {
};
handleRouteSpecificFetch = async () => {
const currentRoute = this.router.currentRoute.name;
const currentRoute = this.router.currentRoute.value.name;
if (isAConversationRoute(currentRoute, true)) {
await this.fetchConversationsOnReconnect();
await this.fetchConversationMessagesOnReconnect();
@@ -123,7 +124,8 @@ class ReconnectService {
};
setConversationLastMessageId = async () => {
const { conversation_id: conversationId } = this.router.currentRoute.params;
const { conversation_id: conversationId } =
this.router.currentRoute.value.params;
if (conversationId) {
await this.store.dispatch('setConversationLastMessageId', {
conversationId: Number(conversationId),