TF-4013 Expand all recipients fields when focus
(cherry picked from commit 0eb80e70bb22e7b6f1bb8552aa6ecd6ca9ab304f)
This commit is contained in:
+9
-9
@@ -27,7 +27,6 @@ extension HandleRecipientsCollapsedExtensions on ComposerController {
|
||||
listReplyToEmailAddress.isNotEmpty;
|
||||
|
||||
void showFullRecipients() {
|
||||
updatePrefixRootState();
|
||||
recipientsCollapsedState.value = PrefixRecipientState.disabled;
|
||||
|
||||
if (listToEmailAddress.isNotEmpty) {
|
||||
@@ -50,27 +49,28 @@ extension HandleRecipientsCollapsedExtensions on ComposerController {
|
||||
replyToAddressExpandMode.value = ExpandMode.EXPAND;
|
||||
}
|
||||
|
||||
updatePrefixRootState();
|
||||
requestFocusRecipientInput();
|
||||
}
|
||||
|
||||
void updatePrefixRootState() {
|
||||
if (listToEmailAddress.isNotEmpty) {
|
||||
prefixRootState = PrefixEmailAddress.to;
|
||||
if (toRecipientState.value == PrefixRecipientState.enabled) {
|
||||
prefixRootState.value = PrefixEmailAddress.to;
|
||||
return;
|
||||
}
|
||||
|
||||
if (listCcEmailAddress.isNotEmpty) {
|
||||
prefixRootState = PrefixEmailAddress.cc;
|
||||
if (ccRecipientState.value == PrefixRecipientState.enabled) {
|
||||
prefixRootState.value = PrefixEmailAddress.cc;
|
||||
return;
|
||||
}
|
||||
|
||||
if (listBccEmailAddress.isNotEmpty) {
|
||||
prefixRootState = PrefixEmailAddress.bcc;
|
||||
if (bccRecipientState.value == PrefixRecipientState.enabled) {
|
||||
prefixRootState.value = PrefixEmailAddress.bcc;
|
||||
return;
|
||||
}
|
||||
|
||||
if (listReplyToEmailAddress.isNotEmpty) {
|
||||
prefixRootState = PrefixEmailAddress.replyTo;
|
||||
if (replyToRecipientState.value == PrefixRecipientState.enabled) {
|
||||
prefixRootState.value = PrefixEmailAddress.replyTo;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user