diff --git a/packages/web/components/MainTabsOrPages/Sidebar.tsx b/packages/web/components/MainTabsOrPages/Sidebar.tsx index 6af2692..4226aff 100644 --- a/packages/web/components/MainTabsOrPages/Sidebar.tsx +++ b/packages/web/components/MainTabsOrPages/Sidebar.tsx @@ -193,7 +193,7 @@ function Sidebar() { Priority - + {/* */} {/* list of pinned convos */} diff --git a/packages/web/recoil/main.tsx b/packages/web/recoil/main.tsx index f0ce3e1..9fd1cea 100644 --- a/packages/web/recoil/main.tsx +++ b/packages/web/recoil/main.tsx @@ -177,20 +177,23 @@ export const doneConvosSelector = selector({ // if convo lastActivityDate > lastInteractionDate // move to default/inbox convos const userConvoAssoc = convoUserMap.get(conv.id); - if ( - userConvoAssoc?.lastInteractionDate && - conv.lastActivityDate > userConvoAssoc?.lastInteractionDate - ) { - conversationService.updateUserConvoRelationship( - userConvoAssoc.id, - conv.id, - ConversationMemberState.default, - false - ); - } // get the userconvoAssoc and see the state if (userConvoAssoc?.state == ConversationMemberState.done) { + if ( + userConvoAssoc?.lastInteractionDate && + conv.lastActivityDate > userConvoAssoc?.lastInteractionDate + ) { + conversationService.updateUserConvoRelationship( + userConvoAssoc.id, + conv.id, + ConversationMemberState.default, + false + ); + + return false; + } + return true; }