fix(mail): show comment attribute of iTIP replies

Fixes #5410
This commit is contained in:
Francis Lachapelle
2021-11-22 16:20:56 -05:00
parent e85576cbb7
commit ff1eecaf5a
3 changed files with 14 additions and 7 deletions

View File

@@ -172,12 +172,12 @@
- (void) setUserComment: (NSString *) _value
{
[[self uniqueChildWithTag: @"usercomment"] setSingleValue: _value forKey: @""];
[[self uniqueChildWithTag: @"comment"] setSingleValue: _value forKey: @""];
}
- (NSString *) userComment
{
return [[self uniqueChildWithTag: @"usercomment"] flattenedValuesForKey: @""];
return [[self uniqueChildWithTag: @"comment"] flattenedValuesForKey: @""];
}
- (void) setStatus: (NSString *) _value

View File

@@ -46,3 +46,4 @@ reply_info = "This is a reply to an event invitation done by you.";
"Cancel" = "Cancel";
"OK" = "OK";
"Comment" = "Comment";
"Description" = "Description";

View File

@@ -234,10 +234,16 @@
<!-- the user comment is used in replies -->
<var:if condition="inEvent.userComment.isNotEmpty">
<div class="linked_attachment_meta" style="background-color: white;">
<var:string value="inEvent.userComment" const:insertBR="1" />
</div>
<br />
<div class="pseudo-input-container">
<label class="pseudo-input-label">
<var:string label:value="Comment"/>
</label>
<div>
<md-content>
<var:string value="inEvent.userComment.stringByDetectingURLs" const:insertBR="1" const:escapeHTML="NO"/>
</md-content>
</div>
</div>
</var:if>
@@ -281,7 +287,7 @@
<var:if condition="authorativeEvent.comment.isNotEmpty">
<div class="pseudo-input-container">
<label class="pseudo-input-label">
<var:string label:value="Comment"/>
<var:string label:value="Description"/>
</label>
<div>
<md-content>