From 596246cd60fbce47122fe3f142e419401c228588 Mon Sep 17 00:00:00 2001 From: Nicolas Mauri Date: Fri, 14 Apr 2023 17:35:25 +0200 Subject: [PATCH] Fix: add missing foreground color attribute --- Riot/Utils/EventFormatter.m | 3 ++- changelog.d/pr-7501.bugfix | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 changelog.d/pr-7501.bugfix diff --git a/Riot/Utils/EventFormatter.m b/Riot/Utils/EventFormatter.m index 5ea1d5f2d..278d902a5 100644 --- a/Riot/Utils/EventFormatter.m +++ b/Riot/Utils/EventFormatter.m @@ -103,7 +103,8 @@ static NSString *const kEventFormatterTimeFormat = @"HH:mm"; @"event_id": event.eventId ?: @"unknown" }); string = [[NSAttributedString alloc] initWithString:[VectorL10n noticeErrorUnformattableEvent] attributes:@{ - NSFontAttributeName: [self encryptedMessagesTextFont] + NSFontAttributeName: [self encryptedMessagesTextFont], + NSForegroundColorAttributeName: [self encryptingTextColor] }]; } } diff --git a/changelog.d/pr-7501.bugfix b/changelog.d/pr-7501.bugfix new file mode 100644 index 000000000..2d6150507 --- /dev/null +++ b/changelog.d/pr-7501.bugfix @@ -0,0 +1 @@ +Add a foreground color attribute for the unformattable event error message.