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:
@@ -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({
|
||||||
|
|||||||
Reference in New Issue
Block a user