From 94fa97ffb73e17e04680ddd327d87560f8abf53a Mon Sep 17 00:00:00 2001 From: Ry Racherbaumer Date: Fri, 1 Mar 2024 12:34:30 -0800 Subject: [PATCH] Update useEffect --- src/controllers/ConversationListController.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/controllers/ConversationListController.tsx b/src/controllers/ConversationListController.tsx index 83906bdf..b36c509f 100644 --- a/src/controllers/ConversationListController.tsx +++ b/src/controllers/ConversationListController.tsx @@ -25,18 +25,17 @@ export const ConversationListController = ({ useStreamAllMessages(); const recipientInput = useXmtpStore((s) => s.recipientInput); - const changedConsentCount = useXmtpStore((s) => s.changedConsentCount); const activeTab = useXmtpStore((s) => s.activeTab); // when the conversations are loaded, update their identities useEffect(() => { const runUpdate = async () => { if (isLoaded) { - await updateConversationIdentities(conversations, db); + await updateConversationIdentities(activeConversations, db); } }; void runUpdate(); - }, [isLoaded, activeTab, changedConsentCount, conversations, db]); + }, [activeConversations, db, isLoaded]); useEffect(() => { const getActiveConversations = async () => {