From 5ba368011126bcd1044a7cef6bb444c6058bb16b Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Sat, 10 Jan 2026 11:55:41 -0500 Subject: [PATCH] Add blurhash support --- README.md | 2 ++ lib/helpers/extensions/event_to_message.dart | 1 + 2 files changed, 3 insertions(+) diff --git a/README.md b/README.md index e7a93c2..864e399 100644 --- a/README.md +++ b/README.md @@ -58,6 +58,7 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S - [ ] Jump to original message - [x] Edits - [x] Attachments + - [x] Blurhashing - [ ] Downloading attachments - [ ] Opening attachments in their own view - [x] Mentions @@ -87,6 +88,7 @@ A simple and user-friendly Matrix client made with Flutter and the Matrix Dart S - [ ] Spam filtering - [ ] Settings - [ ] Light/Dark mode + - [ ] Show media by default - [ ] Dynamic Theming - [ ] Devices - [ ] Viewing devices diff --git a/lib/helpers/extensions/event_to_message.dart b/lib/helpers/extensions/event_to_message.dart index 28d9f4f..2481388 100644 --- a/lib/helpers/extensions/event_to_message.dart +++ b/lib/helpers/extensions/event_to_message.dart @@ -80,6 +80,7 @@ extension EventToMessage on Event { source: (await getAttachmentUri()).toString(), replyToMessageId: replyId, deliveredAt: originServerTs, + blurhash: (event.content["info"] as Map?)?["xyz.amorgan.blurhash"], ), MessageTypes.Audio => Message.audio( metadata: metadata,