[native] Blocking navigation in edit mode in OverlayRouter
Summary:
When we are in edit mode and the user made changes, we prevent him in this diff from opening modals i.g.:
- opening images,
- opening tooltips.
Test Plan:
- Enter edit mode,
- Open the modal without making changes.
- Enter edit mode and make changes to the message,
- Open modal - should confirm with alert.
- Check if the draft is restored.
- Do the same in sidebar.
Video:
Reviewers: michal, inka, ashoat, tomek
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D8270