Skip to content

Commit 70c9877

Browse files
author
Bogdan Tsechoev
committed
Bot UI: Close chat list by clicking on a list item on mobile devices
1 parent 9aa0ec9 commit 70c9877

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ui/packages/platform/src/pages/Bot/ChatsList/ChatsList.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,9 @@ export const ChatsList = (props: ChatsListProps) => {
125125
const handleClick = (threadId: string) => {
126126
if (onLinkClick) {
127127
onLinkClick(threadId)
128+
if (matches) {
129+
onClose()
130+
}
128131
}
129132
}
130133

0 commit comments

Comments
 (0)