fix encrypted uploads

This commit is contained in:
Henry Hiles 2026-07-21 21:34:49 -04:00
commit 2a91959333
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs
3 changed files with 8 additions and 7 deletions

View file

@ -26,8 +26,7 @@ class AttachmentController extends Notifier<(String, MessageContent?)?> {
.uploadMedia(
.new(
path: file.path,
encrypted:
room?.state[EventType.encryption.name]?.isNotEmpty == true,
encrypt: room?.state[EventType.encryption.type]?.isNotEmpty == true,
),
);