Open selected chats from search
Re-apply explicit chat routes after workspace restoration and repeated route notifications so search results and chat notifications open the requested session. Add regression coverage for route, registration, and workspace restore behavior.
This commit is contained in:
@@ -50,6 +50,17 @@ void main() {
|
||||
expect(router.route, AppRoute.settings);
|
||||
},
|
||||
);
|
||||
test('repeated chat deep links notify the mounted destination', () {
|
||||
final router = delegate(AppRoute.chatSession('target'));
|
||||
addTearDown(router.dispose);
|
||||
var notifications = 0;
|
||||
router.addListener(() => notifications++);
|
||||
|
||||
router.goTo(AppRoute.chatSession('target'));
|
||||
|
||||
expect(notifications, 1);
|
||||
expect(router.route, AppRoute.chatSession('target'));
|
||||
});
|
||||
TestWidgetsFlutterBinding.ensureInitialized();
|
||||
test('with nothing pushed the router leaves Back to the platform', () async {
|
||||
for (final route in [
|
||||
|
||||
Reference in New Issue
Block a user