Hot fix missing email subject prefix (Re:, Fwd: when reply or forward email
Signed-off-by: dab246 <tdvu@linagora.com>
This commit is contained in:
@@ -19,7 +19,7 @@ extension EmailActionTypeExtension on EmailActionType {
|
|||||||
} else {
|
} else {
|
||||||
return context != null
|
return context != null
|
||||||
? '${AppLocalizations.of(context).prefix_reply_email} $subject'
|
? '${AppLocalizations.of(context).prefix_reply_email} $subject'
|
||||||
: subject;
|
: 'Re: $subject';
|
||||||
}
|
}
|
||||||
case EmailActionType.forward:
|
case EmailActionType.forward:
|
||||||
if (subject.toLowerCase().startsWith('fwd:')) {
|
if (subject.toLowerCase().startsWith('fwd:')) {
|
||||||
@@ -27,7 +27,7 @@ extension EmailActionTypeExtension on EmailActionType {
|
|||||||
} else {
|
} else {
|
||||||
return context != null
|
return context != null
|
||||||
? '${AppLocalizations.of(context).prefix_forward_email} $subject'
|
? '${AppLocalizations.of(context).prefix_forward_email} $subject'
|
||||||
: subject;
|
: 'Fwd: $subject';
|
||||||
}
|
}
|
||||||
case EmailActionType.editDraft:
|
case EmailActionType.editDraft:
|
||||||
case EmailActionType.editSendingEmail:
|
case EmailActionType.editSendingEmail:
|
||||||
|
|||||||
@@ -37,8 +37,8 @@ extension SetupEmailSubjectExtension on ComposerController {
|
|||||||
);
|
);
|
||||||
|
|
||||||
if (newSubject.isNotEmpty) {
|
if (newSubject.isNotEmpty) {
|
||||||
setSubjectEmail(subject);
|
setSubjectEmail(newSubject);
|
||||||
subjectEmailInputController.text = subject;
|
subjectEmailInputController.text = newSubject;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user