fix(whatsapp): remove ack reactions after replies

This commit is contained in:
Peter Steinberger
2026-04-26 05:35:24 +01:00
parent 427e485f76
commit 9b93b7df62
16 changed files with 329 additions and 32 deletions

View File

@@ -33,7 +33,12 @@ import {
} from "../../auto-reply/reply/mentions.js";
import { dispatchReplyWithBufferedBlockDispatcher } from "../../auto-reply/reply/provider-dispatcher.js";
import { createReplyDispatcherWithTyping } from "../../auto-reply/reply/reply-dispatcher.js";
import { removeAckReactionAfterReply, shouldAckReaction } from "../../channels/ack-reactions.js";
import {
createAckReactionHandle,
removeAckReactionAfterReply,
removeAckReactionHandleAfterReply,
shouldAckReaction,
} from "../../channels/ack-reactions.js";
import { resolveCommandAuthorizedFromAuthorizers } from "../../channels/command-gating.js";
import {
implicitMentionKindWhen,
@@ -232,8 +237,10 @@ export function createRuntimeChannel(): PluginRuntime["channel"] {
resolveInboundMentionDecision,
},
reactions: {
createAckReactionHandle,
shouldAckReaction,
removeAckReactionAfterReply,
removeAckReactionHandleAfterReply,
},
groups: {
resolveGroupPolicy: resolveChannelGroupPolicy,

View File

@@ -128,8 +128,10 @@ export type PluginRuntimeChannel = {
resolveInboundMentionDecision: typeof import("../../channels/mention-gating.js").resolveInboundMentionDecision;
};
reactions: {
createAckReactionHandle: typeof import("../../channels/ack-reactions.js").createAckReactionHandle;
shouldAckReaction: typeof import("../../channels/ack-reactions.js").shouldAckReaction;
removeAckReactionAfterReply: typeof import("../../channels/ack-reactions.js").removeAckReactionAfterReply;
removeAckReactionHandleAfterReply: typeof import("../../channels/ack-reactions.js").removeAckReactionHandleAfterReply;
};
groups: {
resolveGroupPolicy: typeof import("../../config/group-policy.js").resolveChannelGroupPolicy;