Skip to content

fix: prevent duplicate replies and enforce max 5 reply targets#110

Open
gabrielfordevelopment wants to merge 1 commit intostoatchat:devfrom
gabrielfordevelopment:fix/reply-target-dedup-limit
Open

fix: prevent duplicate replies and enforce max 5 reply targets#110
gabrielfordevelopment wants to merge 1 commit intostoatchat:devfrom
gabrielfordevelopment:fix/reply-target-dedup-limit

Conversation

@gabrielfordevelopment
Copy link
Copy Markdown

@gabrielfordevelopment gabrielfordevelopment commented Apr 6, 2026

closes #57

  • fix duplicate reply target addition
  • enforce max 5 reply targets consistently across reply entry points
  • refactor: use addReplyTo(...) as the single reply entry point to centralize mention + validation logic (deduplicates callback code, no behavior change)

Note

Previously, reply targets could be added through multiple code paths (e.g. draft and send callbacks), but the max-5 / duplicate validation was not consistently applied in all of them.
This change routes all reply additions through addReplyTo(...), so duplicate prevention, max-5 enforcement, and mention handling are always applied the same way.


Fixed: Can't reply to the same message multiple times + max 5 reply at once. (See the bug at #57 )

replyfix.mp4

Signed-off-by: Gabriel <60961939+gabrielfordevelopment@users.noreply.github.com>
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.

Messages can be replied to several times at once

1 participant