Skip to content
This repository has been archived by the owner on Dec 12, 2022. It is now read-only.

Commit

Permalink
element-hq/element-ios/issues/4899 - MXKEventFormatter: Fixed invalid…
Browse files Browse the repository at this point in the history
… parameters passed to generated localization functions.
  • Loading branch information
stefanceriu committed Oct 12, 2021
1 parent 3bf68b4 commit 7403ecf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 3 additions & 3 deletions MatrixKit/Utils/EventFormatter/MXKEventFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -997,11 +997,11 @@ - (NSAttributedString *)attributedStringFromEvent:(MXEvent *)event withRoomState
{
if (isRoomDirect)
{
displayText = [MatrixKitL10n noticeRoomAliasesForDm:aliases];
displayText = [MatrixKitL10n noticeRoomAliasesForDm:[aliases componentsJoinedByString:@", "]];
}
else
{
displayText = [MatrixKitL10n noticeRoomAliases:aliases];
displayText = [MatrixKitL10n noticeRoomAliases:[aliases componentsJoinedByString:@", "]];
}
// Append redacted info if any
if (redactedInfo)
Expand All @@ -1017,7 +1017,7 @@ - (NSAttributedString *)attributedStringFromEvent:(MXEvent *)event withRoomState
MXJSONModelSetArray(groups, event.content[@"groups"]);
if (groups)
{
displayText = [MatrixKitL10n noticeRoomRelatedGroups:groups];
displayText = [MatrixKitL10n noticeRoomRelatedGroups:[groups componentsJoinedByString:@", "]];
// Append redacted info if any
if (redactedInfo)
{
Expand Down
1 change: 1 addition & 0 deletions changelog.d/4899.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MXKEventFormatter: Fixed invalid parameters passed to generated localization functions.

0 comments on commit 7403ecf

Please sign in to comment.