fix(preferences(mail)): make sure auto-reply (vacation) text is set

pull/289/head
Francis Lachapelle 2020-10-15 14:07:04 -04:00
parent 41bbbfacd9
commit 1c4ff40d33
2 changed files with 4 additions and 0 deletions

View File

@ -964,6 +964,9 @@ static NSString *sieveScriptName = @"sogo";
text = [values objectForKey: @"autoReplyText"];
b = YES;
if (!text)
text = @"";
if (!useCustomSubject)
{
// If user has not specified a custom subject, fallback to the domain's defaults

View File

@ -985,6 +985,7 @@
</var:if>
<textarea name="autoReplyText"
id="autoReplyText"
ng-required="app.preferences.defaults.Vacation.enabled == 1"
ng-model="app.preferences.defaults.Vacation.autoReplyText"/>
<var:if condition="vacationFooter.length">
<p class="text-preview" md-colors="::{color: 'default-background-600'}"><var:string value="vacationFooter"/></p>