fix: Prevent duplicate API calls for contact details when switching conversations (#9268)

Fixes #9263 
Co-authored-by: Pranav <pranavrajs@gmail.com>
This commit is contained in:
jaedson-correia
2025-06-11 14:27:19 -03:00
committed by GitHub
parent 68bfbc7eb0
commit 5745a55db5

View File

@@ -101,14 +101,12 @@ const getContactDetails = () => {
} }
}; };
watch(conversationId, (newConversationId, prevConversationId) => { watch(contactId, (newContactId, prevContactId) => {
if (newConversationId && newConversationId !== prevConversationId) { if (newContactId && newContactId !== prevContactId) {
getContactDetails(); getContactDetails();
} }
}); });
watch(contactId, getContactDetails);
const onDragEnd = () => { const onDragEnd = () => {
dragging.value = false; dragging.value = false;
updateUISettings({ updateUISettings({