Fix widget updateLastSeen firing on pre-load, skip for cached convo re-open

This commit is contained in:
Abhinav Raut
2026-04-06 15:18:33 +05:30
parent eea99130fa
commit bf7919747d
@@ -280,7 +280,9 @@ watch(
currentConversationUUID.value = currentConvUUID
unreadMessages.value = 0
scrollToBottom()
chatStore.updateCurrentConversationLastSeen()
if (widgetStore.isOpen && !chatStore.isLoadingConversation) {
chatStore.updateCurrentConversationLastSeen()
}
return
}
@@ -315,7 +317,7 @@ watch(
scrollToBottom()
}
},
{ deep: true }
{ deep: true, immediate: true }
)
// Watch for typing indicator and auto-scroll if user is at bottom