Skip to content

Commit

Permalink
fixup! TW-492: Implement when system back after forward msg
Browse files Browse the repository at this point in the history
  • Loading branch information
nqhhdev committed Aug 28, 2023
1 parent f1907b9 commit 995a0b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
8 changes: 3 additions & 5 deletions lib/config/go_routes/go_router.dart
Original file line number Diff line number Diff line change
Expand Up @@ -219,11 +219,9 @@ abstract class AppRoutes {
GoRoute(
path: 'forward',
redirect: (context, state) {
if (state.extra is! ForwardArgument) {
return '${state.fullPath?.replaceAll('forward', '')}';
} else {
return '/rooms/forward';
}
if (state.extra is ForwardArgument) return '/rooms/forward';

return '${state.fullPath?.replaceAll('forward', '')}';
},
pageBuilder: (context, state) {
final extra = state.extra as ForwardArgument;
Expand Down
5 changes: 0 additions & 5 deletions lib/pages/chat/chat.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1293,8 +1293,3 @@ class ChatController extends State<Chat>
}

enum EmojiPickerType { reaction, keyboard }

class FowardAgr {
final String id;
FowardAgr(this.id);
}

0 comments on commit 995a0b1

Please sign in to comment.