mirror of
https://github.com/laurent22/joplin.git
synced 2025-01-11 18:24:43 +02:00
Chore: Mobile: Restore broken back button when file is shared
This commit is contained in:
parent
b8e4150bfd
commit
30a49b84ad
@ -139,6 +139,16 @@ class NoteScreenComponent extends BaseScreenComponent {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (this.state.fromShare) {
|
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();
|
ShareExtension.close();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user