TF-79 Create popmenu for tablet
This commit is contained in:
@@ -21,6 +21,10 @@ extension ListEmailIdExtension on List<EmailId> {
|
||||
final Map<Id, PatchObject> maps = {};
|
||||
forEach((emailId) {
|
||||
maps[emailId.id] = currentMailboxId.generateMoveToMailboxActionPath(destinationMailboxId);
|
||||
});
|
||||
return maps;
|
||||
}
|
||||
|
||||
Map<Id, PatchObject> generateMapUpdateObjectMarkAsStar(MarkStarAction markStarAction) {
|
||||
final Map<Id, PatchObject> maps = {};
|
||||
forEach((emailId) {
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
import 'package:core/core.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/keyword_identifier.dart';
|
||||
import 'package:jmap_dart_client/jmap/mail/email/email.dart';
|
||||
import 'package:model/model.dart';
|
||||
|
||||
extension PresentationEmailExtension on PresentationEmail {
|
||||
@@ -17,11 +15,9 @@ extension PresentationEmailExtension on PresentationEmail {
|
||||
}
|
||||
|
||||
PresentationEmail toggleSelect() {
|
||||
PresentationEmail toUpdatedPresentationEmail({Map<KeyWordIdentifier, bool>? newKeywords}) {
|
||||
return PresentationEmail(
|
||||
id,
|
||||
keywords: keywords,
|
||||
keywords: newKeywords ?? keywords,
|
||||
size: size,
|
||||
receivedAt: receivedAt,
|
||||
hasAttachment: hasAttachment,
|
||||
@@ -73,22 +69,4 @@ extension PresentationEmailExtension on PresentationEmail {
|
||||
replyTo: replyTo
|
||||
);
|
||||
}
|
||||
|
||||
Email toEmail() {
|
||||
return Email(
|
||||
id,
|
||||
keywords: keywords,
|
||||
size: size,
|
||||
receivedAt: receivedAt,
|
||||
hasAttachment: hasAttachment,
|
||||
preview: preview,
|
||||
subject: subject,
|
||||
sentAt: sentAt,
|
||||
from: from,
|
||||
to: to,
|
||||
cc: cc,
|
||||
bcc: bcc,
|
||||
replyTo: replyTo
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -25,7 +25,6 @@ export 'email/email_address_cache.dart';
|
||||
export 'email/read_actions.dart';
|
||||
export 'email/attachment.dart';
|
||||
export 'email/move_action.dart';
|
||||
export 'email/important_action.dart';
|
||||
export 'email/mark_star_action.dart';
|
||||
|
||||
// Extensions
|
||||
|
||||
Reference in New Issue
Block a user