Skip to content

fix: restore text-message sending on recent WhatsApp versions - #798

Open
liraz747 wants to merge 1 commit into
Dev4Mod:masterfrom
liraz747:fix/send-text-message
Open

liraz747 wants to merge 1 commit into
Dev4Mod:masterfrom
liraz747:fix/send-text-message

Conversation

@liraz747

@liraz747 liraz747 commented Sep 16, 2026

Copy link
Copy Markdown

Problem

WppCore.sendMessage looked for an ActionUser method with the shape
List f(List, String). On WhatsApp 2.26.x that method no longer exists,
so sendMessage silently did nothing. This broke the Tasker "send message"
integration and any other caller.

Fix

Resolve the current text-message sending facade instead.

  • facade class found dynamically by its marker string, UserActionsTextMessageSending,
    using the existing Unobfuscator and DexKit convention
  • send method found by its (Jid, String) to void signature
  • instance captured from the facade constructor, falling back to the WhatsApp DI
    service locator if it has not been constructed yet
  • legacy ActionUser path kept as a fallback so older supported versions keep working
  • sending now runs on the main thread and reports failures instead of failing silently

Scope

WppCore.kt and Unobfuscator.kt only. No other features touched.

Testing

WhatsApp 2.26.35.75 on Android 14, module built from source. Messages are delivered
through the facade. The legacy path is left intact for older builds.

Note: this also fixes the underlying send path behind the scheduled-message
request in #787. I plan to open a separate PR adding scheduled messages on
top of this once it lands.

WppCore.sendMessage targeted an ActionUser method whose shape no longer
exists on WhatsApp 2.26.x, so sending silently did nothing (this also
broke the Tasker "send message" integration).

Instead, resolve the current text-message sending facade:
- the facade class is found dynamically by its marker string,
- the send method by its (Jid, String) -> void signature,
- the instance is captured from the facade constructor,
all via the existing Unobfuscator/DexKit convention, with a legacy
ActionUser fallback for older versions. Sending now also runs on the
main thread and reports failures.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant