From cb2785096e3300e48e216abdc1e24d1e0539c531 Mon Sep 17 00:00:00 2001 From: Shivam Mishra Date: Mon, 19 May 2025 16:27:21 +0530 Subject: [PATCH] feat: ensure inbox was always there --- app/javascript/ui/MessageList.vue | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/app/javascript/ui/MessageList.vue b/app/javascript/ui/MessageList.vue index d1fcb9c6b..1a8ec4644 100644 --- a/app/javascript/ui/MessageList.vue +++ b/app/javascript/ui/MessageList.vue @@ -70,9 +70,9 @@ const fetchMore = async () => { } }; -onMounted(() => { - store.dispatch('inboxes/get'); - store.dispatch('getConversation', conversationId.value); +onMounted(async () => { + await store.dispatch('inboxes/get'); + await store.dispatch('getConversation', conversationId.value); }); watch(conversation, () => { @@ -110,15 +110,15 @@ useInfiniteScroll(messageListRef, useThrottleFn(fetchMore, 1000), { - +