Skip to content

fmsg edit: edit or revert the body of a sent message (FMSG-008) - #18

Merged
markmnl merged 1 commit into
mainfrom
fmsg-008-edits
Nov 11, 2026
Merged

markmnl merged 1 commit into
mainfrom
fmsg-008-edits

Conversation

@markmnl

@markmnl markmnl commented Nov 11, 2026

Copy link
Copy Markdown
Owner

Adds fmsg edit <message-id> <file|text|-> and fmsg edit <message-id> --revert, calling POST /fmsg/:id/edit from FMSG-003 v0.5.0 (markmnl/fmsg-webapi#67).

  • The content replaces the whole body, resolved the same way as fmsg send (file, text, or - for stdin).
  • Reports when the body already read that way and nothing was sent. --json prints the edit message's id, time, sha256 and sent.
  • api.Client.EditMessage with a unit test; README updated.

fmsg list and fmsg get are unchanged: they do not hide edit messages or mark edited ones.

go build, go vet and go test ./... pass. Not run against a live host.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@markmnl
markmnl enabled auto-merge (squash) November 11, 2026 06:55
@markmnl
markmnl disabled auto-merge November 11, 2026 09:57
@markmnl
markmnl merged commit 2496030 into main Nov 11, 2026
1 check passed
@markmnl
markmnl deleted the fmsg-008-edits branch November 11, 2026 09:57
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