fix: change translation key for archive action button (#20336)

* chore: change translation key for archive action button

* chore: await navigation before emitting event

---------

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong
2025-07-27 23:13:23 +05:30
committed by GitHub
parent d15f67da5d
commit 708e42d8a3
2 changed files with 4 additions and 4 deletions

View File

@@ -49,9 +49,9 @@ class DriftMemoryBottomInfo extends StatelessWidget {
message: 'view_in_timeline'.tr(),
child: MaterialButton(
minWidth: 0,
onPressed: () {
context.maybePop();
context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()]));
onPressed: () async {
await context.maybePop();
await context.navigateTo(const TabShellRoute(children: [MainTimelineRoute()]));
EventStream.shared.emit(ScrollToDateEvent(fileCreatedDate));
},
shape: const CircleBorder(),