fix: Reply fallback sometimes being stripped incorrectly
This commit is contained in:
parent
d820efa56e
commit
83225ac84e
3 changed files with 8 additions and 3 deletions
|
|
@ -34,16 +34,18 @@ class ReplyContent extends StatelessWidget {
|
|||
if (displayEvent.messageType == MessageTypes.Emote) {
|
||||
html = '* $html';
|
||||
}
|
||||
final fontSize = DefaultTextStyle.of(context).style.fontSize;
|
||||
replyBody = HtmlMessage(
|
||||
html: html,
|
||||
defaultTextStyle: TextStyle(
|
||||
color: lightText
|
||||
? Colors.white
|
||||
: Theme.of(context).textTheme.bodyText2.color,
|
||||
fontSize: DefaultTextStyle.of(context).style.fontSize,
|
||||
fontSize: fontSize,
|
||||
),
|
||||
maxLines: 1,
|
||||
room: displayEvent.room,
|
||||
emoteSize: fontSize * 1.5,
|
||||
);
|
||||
} else {
|
||||
replyBody = Text(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue