Skip to content

Commit

Permalink
fix(mail): show comment attribute of iTIP replies
Browse files Browse the repository at this point in the history
Fixes #5410
  • Loading branch information
cgx committed Nov 22, 2021
1 parent e85576c commit ff1eeca
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions SOPE/NGCards/iCalEntityObject.m
Expand Up @@ -172,12 +172,12 @@ - (NSArray *) categories

- (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
Expand Down
1 change: 1 addition & 0 deletions UI/MailPartViewers/English.lproj/Localizable.strings
Expand Up @@ -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";
16 changes: 11 additions & 5 deletions UI/Templates/MailPartViewers/UIxMailPartICalViewer.wox
Expand Up @@ -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>


Expand Down Expand Up @@ -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>
Expand Down

0 comments on commit ff1eeca

Please sign in to comment.