the "/send" branch with some fixes here and there #1

Merged
melon merged 4 commits from v0.5 into master 2026-07-31 19:06:48 +00:00
Owner
No description provided.
- /send /path/to/file: uploads via XEP-0363 HTTP Upload (slot request, curl PUT, OOB message)
  - Requires upload_service in config (e.g. share.mlemsoda.vip)
  - Pending IQ mechanism in session.ml (register_iq + mvar)
- Outgoing XEP-0461 replies: r key in Chat view selects a message to reply to
  - reply_message/reply_group_message stanzas with <reply> + <fallback>
  - Messages now carry their stanza id for reply correlation
- /who: lists MUC occupants (uses existing occupant tracking)
- Config: upload_service key
- Updated /help and README
- reply_message/reply_group_message: separate ~quoted_text from ~reply_text
  (was quoting the reply text itself, showing it twice)
- reply_target stores (parent_from, parent_id, quoted_text) 3-tuple
- r key + /reply command pass the selected message's text as quoted_text
- content_type_of_filename: guesses MIME from extension (image/png, video/mp4, etc.)
  instead of hardcoded application/octet-stream
- Removed /who command entirely
pad/wrap operate on byte positions and can split multi-byte UTF-8
characters, producing orphan continuation bytes that crash I.string.
sanitize now validates UTF-8 sequences and replaces invalid bytes
(control chars + malformed multi-byte) with spaces.
- sanitize: validates UTF-8 sequences (prevents notty crash on split multibyte)
- pad: re-sanitizes after truncation
- Removed outgoing reply feature entirely (r key, /reply, reply_target,
  reply_message/reply_group_message stanzas)
- /send: parses <header> from slot response, sends them with curl PUT
  (fixes 'file not found' on receiver)
- /send: uses message_with_media (OOB + file metadata) so monocles
  recognizes the link as media
- message_with_media replaces message_with_oob
- Chat tabs: add locally with id, dedup carbons by matching id
- Notty_lwt.Term.image wrapped in try%lwt to prevent tcsetattr crash
- Removed prerr_endline debug output
melon merged commit 765c242c7e into master 2026-07-31 19:06:48 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
melon/Giza!1
No description provided.