TF-78 Update state email in threads and count unread of current mailbox when back from EmailView
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class AppAction with EquatableMixin {}
|
||||
|
||||
abstract class ActionOnline extends AppAction {}
|
||||
|
||||
abstract class ActionOffline extends AppAction {}
|
||||
@@ -0,0 +1,14 @@
|
||||
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:model/mailbox/presentation_mailbox.dart';
|
||||
import 'package:tmail_ui_user/main/actions/app_action.dart';
|
||||
|
||||
class MarkAsEmailReadAction extends ActionOnline {
|
||||
final EmailId emailId;
|
||||
final PresentationMailbox presentationMailbox;
|
||||
|
||||
MarkAsEmailReadAction(this.emailId, this.presentationMailbox);
|
||||
|
||||
@override
|
||||
List<Object?> get props => [emailId, presentationMailbox];
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
import 'package:get/get.dart';
|
||||
|
||||
Future<dynamic> push(String routeName, {dynamic arguments}) async {
|
||||
return Get.toNamed(routeName, arguments: arguments);
|
||||
}
|
||||
|
||||
Future<dynamic> pushAndPop(String routeName, {dynamic arguments}) async {
|
||||
return Get.offNamed(routeName, arguments: arguments);
|
||||
}
|
||||
|
||||
Future<dynamic> pushAndPopAll(String routeName, {dynamic arguments}) async {
|
||||
return Get.offAllNamed(routeName, arguments: arguments);
|
||||
}
|
||||
|
||||
void popBack({dynamic result}) {
|
||||
Get.back(result: result);
|
||||
}
|
||||
Reference in New Issue
Block a user