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

fix: Hide markdown in chat list preview and local notifications

See merge request famedly/fluffychat!822
krille/custom-image-resizer
Krille Fear 3 years ago
commit 7e7e273fc5

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

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

Loading…
Cancel
Save