1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Chore: Mobile: Restore broken back button when file is shared

This commit is contained in:
Laurent Cozic 2023-02-19 19:24:44 +00:00
parent b8e4150bfd
commit 30a49b84ad

View File

@ -139,6 +139,16 @@ class NoteScreenComponent extends BaseScreenComponent {
}
if (this.state.fromShare) {
// effectively the same as NAV_BACK but NAV_BACK causes undesired behaviour in this case:
// - share to Joplin from some other app
// - open Joplin and open any note
// - go back -- with NAV_BACK this causes the app to exit rather than just showing notes
this.props.dispatch({
type: 'NAV_GO',
routeName: 'Notes',
folderId: this.state.note.parent_id,
});
ShareExtension.close();
return true;
}