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:
parent
b8e4150bfd
commit
30a49b84ad
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user