|
|
@ -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,
|
|
|
|