Commit Graph

629 Commits

Author SHA1 Message Date
octoshrimpy 5b29290ce1 feat(reactions): double-tap to react and configurable message swipe actions
Add two reaction UX improvements on top of the send-reaction feature:

- Double-tap a message bubble to send the configured default reaction
  emoji. A single GestureDetector on the item root now handles tap,
  double-tap and long-press, leaving child view touch handling intact.

- Configurable per-direction message swipe actions (none, react, reply,
  copy, forward, delete) via a new MessageItemTouchCallback that always
  snaps the row back after a swipe. Adds a settings screen for the swipe
  actions and a default-reaction emoji picker, backed by new preferences.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 11:52:14 -04:00
octoshrimpy 88b57ee9d0 fix(reactions): correct thread safety, self-receipt, anchoring, and attribution
Address review findings on the send-reaction feature:

- Run permission checks on the main thread and only switch to IO for the
  actual send, instead of touching the UI from a background thread.
- Parse outgoing reactions on the sender's own device. Sent messages don't
  arrive back as incoming, so they would otherwise never be attached or
  hidden until a full reparse.
- Anchor the reaction picker above the long-pressed message instead of
  centering it on the screen, falling back to the list when off-screen.
- Always send reactions as group MMS in a group thread.
- Attribute our own reactions to our own number (via isMe + getMyPhoneNumber)
  rather than the recipient's address, and show "Me" for them in the
  reactions dialog.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 11:10:02 -04:00
octoshrimpy d0d3501a83 feat(reactions): send emoji reactions via quik-encoded SMS/MMS
Long-press a message to open an emoji reaction picker. Reactions are
sent as a plain SMS/MMS body using a quik-specific zero-width encoding
that carries the original sender's address and the message's timestamp,
so a receiving quik instance can attach the reaction to the exact
message via address + date lookup (fast path), falling back to the
existing text matching for non-quik senders.

The quik pattern is registered first so it wins over the generic Google
Messages pattern; iOS/Google parsing is unchanged. New ParsedEmojiReaction
fields are in-memory only, so no Realm migration is needed.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-14 10:53:05 -04:00
Inhishonor a88d5c62e0 fix(main): Get scheduled messages from view model
The previous behavior fetched scheduled messages directly from the conversation adaptor. This was causing memory leaks and potentially crashes. Now, the view model fetches it and provides the data through state.
2026-06-12 09:42:01 -07:00
Inhishonor 6a20c9b9ff fix(gallery): Use a dedicated dark theme
The app was setting gallery to black mode programmatically, and for some reason this was affecting other activities theming. We can just use a custom theme to force black mode that won't mess with other screens.
2026-05-13 14:14:19 -07:00
Inhishonor 6dff95d1e5 fix(compose): Prevent infinite loop on editing scheduled message
For some asinine reason, `state.scheduled` was observed than set with the same value, which was causing an infinite loop. `scheduled` is completely irrelevant to `canSend` anyway, as scheduled is essentially a boolean, and it is handled elsewhere.
2026-04-09 18:19:59 -06:00
Inhishonor b488320022 fix(notif): Stop requestCodes for marking messages from colliding
This was changing the behavior to mark read on notification swipe.
2026-04-09 18:15:48 -06:00
Cian Ormond d59deeb831 refactor(utils): Remove redundant shortcut code 2026-04-02 17:47:44 -06:00
Cian Ormond de6015a478 fix(utils): Check if shortcut limit reached before creating shortcut below API 30
Co-authored-by: Inhishonor <inhishonor@protonmail.com>
2026-04-02 17:47:44 -06:00
Inhishonor e7bb3a3402 refactor(utils): Simplify shortcut generation logic 2026-04-02 17:47:44 -06:00
Inhishonor e9a423b157 refactor(utils): Clean up shortcut code 2026-04-02 17:47:44 -06:00
Cian Ormond 35d170b87d feat(notif): Move persistent notification to its own channel 2026-03-11 10:17:38 -07:00
Inhishonor 400643ff3e chore(about): Update links for the quik-sms organization 2026-03-08 11:57:46 -07:00
Inhishonor fa8e716495 feat(settings): Make About page a separate activity accessible from the drawer 2026-03-08 11:57:46 -07:00
Dale ff83de3380 fix(compose): Handle different intents in provideSharedAttachments
Manage single and multiple URIs without throwing a class cast exception.
2026-03-06 17:07:38 -08:00
Inhishonor 16c495a0a1 compose: Fix sendAsGroup switch not responding on creating conversation 2026-03-03 13:37:30 -08:00
Ben Iofel 434b9d610b cleanup 2026-02-03 01:40:27 -05:00
Ben Iofel 2cdf9f5fc0 Merge remote-tracking branch 'origin/master' into view-bindings-2 2026-01-26 02:25:15 -05:00
octoshrimpy 13e6de7a40 Merge pull request #685 from Inhishonor/message-managment
Move the auto delete old message setting to message management
2026-01-24 08:48:30 -05:00
octoshrimpy d4576c8482 Merge pull request #677 from benwaffle/show-who-sent-emojis
Implement tapping emoji to see who reacted
2026-01-24 08:47:00 -05:00
Inhishonor 8ac0daadc4 Clean up messageUtils code 2026-01-15 19:45:44 -08:00
Inhishonor 50abd37824 Move auto delete old messages to message management
It fits better here and will help cleaning out the settings page
2026-01-15 19:39:15 -08:00
Ben Iofel dfe0094093 remove excessive padding 2026-01-14 01:02:01 -05:00
Ben Iofel a35c27d676 remove ok button 2026-01-14 00:41:02 -05:00
Ben Iofel 625b08d5f8 simplify 2026-01-12 10:45:41 -05:00
Ben Iofel 45a1426319 Implement tapping emoji to see who reacted 2026-01-12 03:49:25 -05:00
Ben Iofel 7c52fedd89 Display all reacted emojis
Not just the most common one
2026-01-12 02:39:03 -05:00
Ben Iofel 109c3c2c0a Use QkBindingViewHolder in single-type adapters
Store ViewBinding in the ViewHolder instead of recreating it via
.bind() on every onBindViewHolder call. This reduces allocations
and simplifies the code.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 02:09:53 -05:00
Ben Iofel 6f3d6cc679 Simplify checkbox access in PreferenceView
Add widget and checkbox properties to PreferenceView, eliminating
repetitive findViewById<QkSwitch>(R.id.checkbox) calls throughout
the codebase.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-12 02:06:18 -05:00
Ben Iofel 7f984f715e Finish migration to ViewBinding 2026-01-12 01:48:12 -05:00
octoshrimpy 09a9bd136b Merge pull request #672 from Inhishonor/deduplicate-messages
Add a deduplicate message feature
2026-01-11 23:21:33 -05:00
Inhishonor c1d824abbc Add a deduplicate message feature
- Adds a new class of features for message management.
- Adds a manual option to find and delete duplicate messages
- Adds a setting to automatically delete duplicates during sync
- Adds a sha256 hashing function

Co-authored-by: octoshrimpy <octoshrimpy@users.noreply.github.com>
2026-01-11 19:36:52 -08:00
octoshrimpy 41b386c7e5 Merge pull request #662 from Inhishonor/conversation-loading
Fix compose activity infinitely loading
2026-01-11 12:31:40 -05:00
octoshrimpy 6849991120 Merge pull request #648 from Inhishonor/logging-update
Clean up logging
2026-01-11 12:28:16 -05:00
octoshrimpy 6df814b0a0 Merge pull request #647 from Inhishonor/notif-improvements
Improvements to the worker and message notifications
2026-01-11 12:27:57 -05:00
Inhishonor 5687ec1ff7 Add better error handling for conversation loading 2025-12-30 08:34:25 -08:00
Inhishonor 096c7e3c68 Clean up logging 2025-12-20 17:56:05 -08:00
Inhishonor 9588cae1e3 Prevent notifications from alerting on update
This was killing the notification sound on older Android versions.
2025-12-20 14:10:38 -08:00
Inhishonor 260de358a3 Use a new icon for the worker notification 2025-12-20 14:10:38 -08:00
Inhishonor a0e0a8fd32 Make worker notification silent 2025-12-20 14:10:37 -08:00
Inhishonor 33f10e7edd Add a dedicated emoji reaction sync process
Looks better, and provides better UX
2025-12-18 16:50:01 -08:00
octoshrimpy b4bce2c1a9 Merge pull request #625 from Inhishonor/receiving-notification
Add a description to the worker notification
2025-12-12 19:50:56 -05:00
Inhishonor 4bf0aebb04 Clean up icon generation code 2025-12-12 15:10:27 -08:00
Inhishonor 5d10c17ef2 Navigate back to main screen from contacts activity
Before this change, when the back button was pressed, the app would navigate to an empty compose activity.
2025-12-12 15:09:54 -08:00
Inhishonor 29084688d1 Add a description to the worker notification
It wasn't clear why it was there, and was confusing for the end user.
2025-12-12 15:04:11 -08:00
octoshrimpy d949f92ecd Merge pull request #608 from Inhishonor/contact-back
Navigate back to main screen from contacts activity
2025-12-10 14:41:27 -05:00
Inhishonor 38a5daad17 Navigate back to main screen from contacts activity
Before this change, when the back button was pressed, the app would navigate to an empty compose activity.
2025-12-10 11:26:49 -08:00
Inhishonor d823ea3192 Fix crash on loading conversation
The switchMap was causing a crash because it was trying to use conversation as an observable, even though it is not. (caused by c3df5f231f) There is no need for this code, because the whole function is now an observable.
2025-12-07 15:01:29 -08:00
Inhishonor 732c606b12 Rework resend message action on notifications
Uses SendExistingMessage class now and a dedicated broadcast receiver.
2025-12-06 16:44:18 -08:00
Inhishonor 2f860aba36 Merge branch 'master' into upgrade-smsmms-group-individual-send-no-wait-appear-delayed-mms-mms-receive-to-worker-send-ack-mmsc 2025-10-09 18:04:02 -07:00