better reply fallback stripping
This commit is contained in:
parent
ff02c581d1
commit
6d2796bc0a
5 changed files with 8 additions and 10 deletions
|
|
@ -177,7 +177,7 @@ class ChatListItem extends StatelessWidget {
|
|||
)
|
||||
: Text(
|
||||
room.lastEvent.getLocalizedBody(context,
|
||||
withSenderNamePrefix: true, hideQuotes: true),
|
||||
withSenderNamePrefix: true, hideReply: true),
|
||||
maxLines: 1,
|
||||
overflow: TextOverflow.ellipsis,
|
||||
style: TextStyle(
|
||||
|
|
|
|||
|
|
@ -239,7 +239,7 @@ class MatrixState extends State<Matrix> {
|
|||
|
||||
// Calculate the body
|
||||
final String body = event.getLocalizedBody(context,
|
||||
withSenderNamePrefix: true, hideQuotes: true);
|
||||
withSenderNamePrefix: true, hideReply: true);
|
||||
|
||||
// The person object for the android message style notification
|
||||
final person = Person(
|
||||
|
|
|
|||
|
|
@ -135,7 +135,7 @@ class MessageContent extends StatelessWidget {
|
|||
case MessageTypes.Notice:
|
||||
case MessageTypes.Emote:
|
||||
return LinkText(
|
||||
text: event.getLocalizedBody(context, hideQuotes: true),
|
||||
text: event.getLocalizedBody(context, hideReply: true),
|
||||
textStyle: TextStyle(
|
||||
color: textColor,
|
||||
decoration: event.redacted ? TextDecoration.lineThrough : null,
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ class ReplyContent extends StatelessWidget {
|
|||
),
|
||||
Text(
|
||||
replyEvent?.getLocalizedBody(context,
|
||||
withSenderNamePrefix: false, hideQuotes: true) ??
|
||||
withSenderNamePrefix: false, hideReply: true) ??
|
||||
"",
|
||||
overflow: TextOverflow.ellipsis,
|
||||
maxLines: 1,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue