Search: Suppress focus message on search (#5217)
This commit is contained in:
parent
11f3fee090
commit
0617d77243
@ -218,10 +218,6 @@ const MiddleSearch: FC<StateProps> = ({
|
|||||||
// Focus message
|
// Focus message
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (foundIds?.length) {
|
if (foundIds?.length) {
|
||||||
if (searchType === 'chat') {
|
|
||||||
const [chatId, messageId] = parseSearchResultKey(foundIds[0]);
|
|
||||||
focusMessage({ chatId, messageId, threadId });
|
|
||||||
}
|
|
||||||
setFocusedIndex(0);
|
setFocusedIndex(0);
|
||||||
} else {
|
} else {
|
||||||
setFocusedIndex(-1);
|
setFocusedIndex(-1);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user