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:
@@ -248,7 +248,13 @@ class AppRouterDelegate extends RouterDelegate<AppRoute> with ChangeNotifier {
|
||||
/// Records a user move; the Router turns the new configuration into a
|
||||
/// history entry (or a replacement when it already matches the location).
|
||||
void goTo(AppRoute route) {
|
||||
if (route == _route) return;
|
||||
// A repeated deep link is still an explicit request to show that route.
|
||||
// The chat workspace may have changed independently while the URL stayed
|
||||
// the same (for example, a different split pane became active).
|
||||
if (route == _route) {
|
||||
notifyListeners();
|
||||
return;
|
||||
}
|
||||
_rememberParent(route);
|
||||
_route = route;
|
||||
notifyListeners();
|
||||
|
||||
Reference in New Issue
Block a user