mirror of
https://github.com/danog/telegram-tt.git
synced 2024-12-13 09:37:29 +01:00
Middle Header: Exit select mode with Back button (#1409)
This commit is contained in:
parent
a9f990c7c9
commit
0079e21906
@ -188,6 +188,11 @@ const MiddleHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isSelectModeActive) {
|
||||||
|
exitMessageSelectMode();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (threadId === MAIN_THREAD_ID && messageListType === 'thread' && currentTransitionKey === 0) {
|
if (threadId === MAIN_THREAD_ID && messageListType === 'thread' && currentTransitionKey === 0) {
|
||||||
if (IS_SINGLE_COLUMN_LAYOUT || shouldShowCloseButton) {
|
if (IS_SINGLE_COLUMN_LAYOUT || shouldShowCloseButton) {
|
||||||
e.stopPropagation(); // Stop propagation to prevent chat re-opening on tablets
|
e.stopPropagation(); // Stop propagation to prevent chat re-opening on tablets
|
||||||
@ -199,10 +204,6 @@ const MiddleHeader: FC<OwnProps & StateProps & DispatchProps> = ({
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (messageListType === 'scheduled' && isSelectModeActive) {
|
|
||||||
exitMessageSelectMode();
|
|
||||||
}
|
|
||||||
|
|
||||||
openPreviousChat();
|
openPreviousChat();
|
||||||
}, [
|
}, [
|
||||||
threadId, messageListType, currentTransitionKey, isSelectModeActive, openPreviousChat, shouldShowCloseButton,
|
threadId, messageListType, currentTransitionKey, isSelectModeActive, openPreviousChat, shouldShowCloseButton,
|
||||||
|
Loading…
Reference in New Issue
Block a user