TF-4236 Implement remove a label from an email when click on the cross on a tag in the opened mail
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:labels/labels.dart';
|
||||
import 'package:tmail_ui_user/features/email/presentation/action/email_ui_action.dart';
|
||||
import 'package:tmail_ui_user/features/thread_detail/presentation/thread_detail_controller.dart';
|
||||
|
||||
extension RemoveLabelFromEmailExtension on ThreadDetailController {
|
||||
void removeLabelFromEmail(EmailId emailId, Label label) {
|
||||
mailboxDashBoardController.dispatchEmailUIAction(
|
||||
RemoveLabelFromEmailAction(emailId, label),
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user