mirror of
https://github.com/twonlyapp/twonly-app.git
synced 2026-06-25 08:44:08 +00:00
replace push with go to prevent multiple chats open
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
Some checks are pending
Flutter analyze & test / flutter_analyze_and_test (push) Waiting to run
This commit is contained in:
parent
5dc071a737
commit
f436137c9b
1 changed files with 2 additions and 2 deletions
|
|
@ -82,7 +82,7 @@ class HomeViewState extends State<HomeView> with WidgetsBindingObserver {
|
||||||
if (response.payload != null &&
|
if (response.payload != null &&
|
||||||
response.payload!.startsWith(Routes.chats) &&
|
response.payload!.startsWith(Routes.chats) &&
|
||||||
response.payload! != Routes.chats) {
|
response.payload! != Routes.chats) {
|
||||||
await routerProvider.push(response.payload!);
|
routerProvider.go(response.payload!);
|
||||||
}
|
}
|
||||||
streamHomeViewPageIndex.add(0);
|
streamHomeViewPageIndex.add(0);
|
||||||
});
|
});
|
||||||
|
|
@ -155,7 +155,7 @@ class HomeViewState extends State<HomeView> with WidgetsBindingObserver {
|
||||||
if (payload != null &&
|
if (payload != null &&
|
||||||
payload.startsWith(Routes.chats) &&
|
payload.startsWith(Routes.chats) &&
|
||||||
payload != Routes.chats) {
|
payload != Routes.chats) {
|
||||||
await routerProvider.push(payload);
|
routerProvider.go(payload);
|
||||||
streamHomeViewPageIndex.add(0);
|
streamHomeViewPageIndex.add(0);
|
||||||
}
|
}
|
||||||
if (payload == Routes.chats) {
|
if (payload == Routes.chats) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue