Fix: text color of the last event description was incorrect.

This commit is contained in:
Nicolas Mauri
2023-05-11 18:15:35 +02:00
parent 16340a18a6
commit c843eafe84
6 changed files with 133 additions and 5 deletions
@@ -81,7 +81,8 @@
// Manage lastEventAttributedTextMessage optional property
if (!roomCellData.roomSummary.spaceChildInfo && [roomCellData respondsToSelector:@selector(lastEventAttributedTextMessage)])
{
self.lastEventDescription.attributedText = roomCellData.lastEventAttributedTextMessage;
// Attempt to correct the attributed string colors to match the current theme
self.lastEventDescription.attributedText = [roomCellData.lastEventAttributedTextMessage fixForegroundColor];
}
else
{