Merge branch 'krille/hide-markdown' into 'main'

fix: Hide markdown in chat list preview and local notifications

See merge request famedly/fluffychat!822
This commit is contained in:
Krille Fear 2022-04-13 14:22:38 +00:00
commit 959ceb1353
2 changed files with 2 additions and 0 deletions

View File

@ -267,6 +267,7 @@ class ChatListItem extends StatelessWidget {
hideReply: true,
hideEdit: true,
plaintextBody: true,
removeMarkdown: true,
withSenderNamePrefix: !room.isDirectChat ||
room.directChatMatrixID !=
room.lastEvent?.senderId,

View File

@ -38,6 +38,7 @@ extension LocalNotificationsExtension on MatrixState {
plaintextBody: true,
hideReply: true,
hideEdit: true,
removeMarkdown: true,
);
final icon = event.sender.avatarUrl?.getThumbnail(client,
width: 64, height: 64, method: ThumbnailMethod.crop) ??