Search: Suppress focus message on search (#5217)

This commit is contained in:
Alexander Zinchuk 2024-11-27 20:33:56 +04:00
parent 11f3fee090
commit 0617d77243

View File

@ -218,10 +218,6 @@ const MiddleSearch: FC<StateProps> = ({
// Focus message
useEffect(() => {
if (foundIds?.length) {
if (searchType === 'chat') {
const [chatId, messageId] = parseSearchResultKey(foundIds[0]);
focusMessage({ chatId, messageId, threadId });
}
setFocusedIndex(0);
} else {
setFocusedIndex(-1);