chore: Follow up everything is html message
This commit is contained in:
parent
44b99e7242
commit
6583bfdabf
1 changed files with 7 additions and 1 deletions
|
|
@ -261,6 +261,10 @@ class MessageContent extends StatelessWidget {
|
||||||
if (event.messageType == MessageTypes.Emote) {
|
if (event.messageType == MessageTypes.Emote) {
|
||||||
html = '* $html';
|
html = '* $html';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
final bigEmotes = event.onlyEmotes &&
|
||||||
|
event.numberEmotes > 0 &&
|
||||||
|
event.numberEmotes <= 3;
|
||||||
return Padding(
|
return Padding(
|
||||||
padding: const EdgeInsets.symmetric(
|
padding: const EdgeInsets.symmetric(
|
||||||
horizontal: 16,
|
horizontal: 16,
|
||||||
|
|
@ -270,7 +274,9 @@ class MessageContent extends StatelessWidget {
|
||||||
html: html,
|
html: html,
|
||||||
textColor: textColor,
|
textColor: textColor,
|
||||||
room: event.room,
|
room: event.room,
|
||||||
fontSize: AppConfig.fontSizeFactor * AppConfig.messageFontSize,
|
fontSize: AppConfig.fontSizeFactor *
|
||||||
|
AppConfig.messageFontSize *
|
||||||
|
(bigEmotes ? 5 : 1),
|
||||||
limitHeight: !selected,
|
limitHeight: !selected,
|
||||||
linkStyle: TextStyle(
|
linkStyle: TextStyle(
|
||||||
color: linkColor,
|
color: linkColor,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue