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

Commit

Permalink
MXKEventFormatter: Emotes which contain a single emoji are expanded t…
Browse files Browse the repository at this point in the history
…o be enormous (element-hq/element-ios#1558)

Make sure the emote prefix always uses default font and color.
  • Loading branch information
manuroe committed Feb 22, 2018
1 parent 9435018 commit 8dd142b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MatrixKit/Utils/MXKEventFormatter.m
Original file line number Diff line number Diff line change
Expand Up @@ -928,7 +928,7 @@ - (NSAttributedString *)attributedStringFromEvent:(MXEvent *)event withRoomState
NSMutableAttributedString *newAttributedDisplayText =
[[NSMutableAttributedString alloc] initWithString:emotePrefix
attributes:@{
NSForegroundColorAttributeName: [self textColorForEvent:event],
NSForegroundColorAttributeName: _defaultTextColor,
NSFontAttributeName: _defaultTextFont
}];

Expand Down

0 comments on commit 8dd142b

Please sign in to comment.