| 
														
															@@ -67,6 +67,8 @@ const Main: FC<IMainProps> = ({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   * conversation info 
														 | 
														
														 | 
														
															   * conversation info 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   */ 
														 | 
														
														 | 
														
															   */ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const [allConversationList, setAllConversationList] = useState<ConversationItem[]>([]) 
														 | 
														
														 | 
														
															   const [allConversationList, setAllConversationList] = useState<ConversationItem[]>([]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  const [isClearConversationList, { setTrue: clearConversationListTrue, setFalse: clearConversationListFalse }] = useBoolean(false) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+  const [isClearPinnedConversationList, { setTrue: clearPinnedConversationListTrue, setFalse: clearPinnedConversationListFalse }] = useBoolean(false) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const { 
														 | 
														
														 | 
														
															   const { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     conversationList, 
														 | 
														
														 | 
														
															     conversationList, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     setConversationList, 
														 | 
														
														 | 
														
															     setConversationList, 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -89,18 +91,32 @@ const Main: FC<IMainProps> = ({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const [hasPinnedMore, setHasPinnedMore] = useState<boolean>(true) 
														 | 
														
														 | 
														
															   const [hasPinnedMore, setHasPinnedMore] = useState<boolean>(true) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const onMoreLoaded = ({ data: conversations, has_more }: any) => { 
														 | 
														
														 | 
														
															   const onMoreLoaded = ({ data: conversations, has_more }: any) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     setHasMore(has_more) 
														 | 
														
														 | 
														
															     setHasMore(has_more) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    setConversationList([...conversationList, ...conversations]) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if (isClearConversationList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      setConversationList(conversations) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      clearConversationListFalse() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      setConversationList([...conversationList, ...conversations]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const onPinnedMoreLoaded = ({ data: conversations, has_more }: any) => { 
														 | 
														
														 | 
														
															   const onPinnedMoreLoaded = ({ data: conversations, has_more }: any) => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     setHasPinnedMore(has_more) 
														 | 
														
														 | 
														
															     setHasPinnedMore(has_more) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    setPinnedConversationList([...pinnedConversationList, ...conversations]) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if (isClearPinnedConversationList) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      setPinnedConversationList(conversations) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      clearPinnedConversationListFalse() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    else { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      setPinnedConversationList([...pinnedConversationList, ...conversations]) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const [controlUpdateConversationList, setControlUpdateConversationList] = useState(0) 
														 | 
														
														 | 
														
															   const [controlUpdateConversationList, setControlUpdateConversationList] = useState(0) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const noticeUpdateList = () => { 
														 | 
														
														 | 
														
															   const noticeUpdateList = () => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    setConversationList([]) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     setHasMore(true) 
														 | 
														
														 | 
														
															     setHasMore(true) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    setPinnedConversationList([]) 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    clearConversationListTrue() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     setHasPinnedMore(true) 
														 | 
														
														 | 
														
															     setHasPinnedMore(true) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    clearPinnedConversationListTrue() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     setControlUpdateConversationList(Date.now()) 
														 | 
														
														 | 
														
															     setControlUpdateConversationList(Date.now()) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   const handlePin = async (id: string) => { 
														 | 
														
														 | 
														
															   const handlePin = async (id: string) => { 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -126,6 +142,9 @@ const Main: FC<IMainProps> = ({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     await delConversation(isInstalledApp, installedAppInfo?.id, toDeleteConversationId) 
														 | 
														
														 | 
														
															     await delConversation(isInstalledApp, installedAppInfo?.id, toDeleteConversationId) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     notify({ type: 'success', message: t('common.api.success') }) 
														 | 
														
														 | 
														
															     notify({ type: 'success', message: t('common.api.success') }) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     hideConfirm() 
														 | 
														
														 | 
														
															     hideConfirm() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    if (currConversationId === toDeleteConversationId) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      handleConversationIdChange('-1') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     noticeUpdateList() 
														 | 
														
														 | 
														
															     noticeUpdateList() 
														 | 
													
												
											
												
													
														| 
														 | 
														
															   } 
														 | 
														
														 | 
														
															   } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															  
														 | 
														
														 | 
														
															  
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -496,7 +515,9 @@ const Main: FC<IMainProps> = ({ 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     return ( 
														 | 
														
														 | 
														
															     return ( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       <Sidebar 
														 | 
														
														 | 
														
															       <Sidebar 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         list={conversationList} 
														 | 
														
														 | 
														
															         list={conversationList} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        isClearConversationList={isClearConversationList} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         pinnedList={pinnedConversationList} 
														 | 
														
														 | 
														
															         pinnedList={pinnedConversationList} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        isClearPinnedConversationList={isClearPinnedConversationList} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         onMoreLoaded={onMoreLoaded} 
														 | 
														
														 | 
														
															         onMoreLoaded={onMoreLoaded} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         onPinnedMoreLoaded={onPinnedMoreLoaded} 
														 | 
														
														 | 
														
															         onPinnedMoreLoaded={onPinnedMoreLoaded} 
														 | 
													
												
											
												
													
														| 
														 | 
														
															         isNoMore={!hasMore} 
														 | 
														
														 | 
														
															         isNoMore={!hasMore} 
														 |