mirror of
https://github.com/abhinavxd/libredesk.git
synced 2026-09-21 18:13:29 +00:00
Fix widget updateLastSeen firing on pre-load, skip for cached convo re-open
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user