From d0312e0e40f975dc531b95f3c0b5f2be6a08ecdd Mon Sep 17 00:00:00 2001 From: Naveen Singh <36371707+naveensingh@users.noreply.github.com> Date: Sun, 12 Oct 2025 17:03:56 +0530 Subject: [PATCH] fix: update send button state when compression is skipped (#547) Refs: https://github.com/FossifyOrg/Messages/issues/165 --- CHANGELOG.md | 2 ++ .../org/fossify/messages/adapters/AttachmentsAdapter.kt | 4 ++++ 2 files changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index affdf6e8..db2283dc 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fixed keyword blocking for MMS messages ([#99]) - Fixed contact number selection when adding members to a group ([#456]) - Fixed a glitch in pattern lock after incorrect attempts +- Fixed disabled send button when sending images without text ([#165]) ## [1.3.0] - 2025-09-09 ### Added @@ -158,6 +159,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 [#334]: https://github.com/FossifyOrg/Messages/issues/334 [#349]: https://github.com/FossifyOrg/Messages/issues/349 [#359]: https://github.com/FossifyOrg/Messages/issues/359 +[#165]: https://github.com/FossifyOrg/Messages/issues/165 [#456]: https://github.com/FossifyOrg/Messages/issues/456 [#461]: https://github.com/FossifyOrg/Messages/issues/461 diff --git a/app/src/main/kotlin/org/fossify/messages/adapters/AttachmentsAdapter.kt b/app/src/main/kotlin/org/fossify/messages/adapters/AttachmentsAdapter.kt index 8f1d0427..8c2018d9 100644 --- a/app/src/main/kotlin/org/fossify/messages/adapters/AttachmentsAdapter.kt +++ b/app/src/main/kotlin/org/fossify/messages/adapters/AttachmentsAdapter.kt @@ -160,6 +160,10 @@ class AttachmentsAdapter( } } } else { + if (attachment.isPending) { + attachments.find { it.uri == attachment.uri }?.isPending = false + onReady() + } loadMediaPreview(this, attachment) } }