Files
zulip-platform-plugins/plugins/platforms/zulip
Abiba (pi) 870f64d8a9
CI / validate (pull_request) Failing after 2s
fix(zulip): edit_message accepts **kwargs, returns SendResult; use POST for edits
The Gateway streaming interface calls edit_message() with finalize=True
and expects SendResult. Fixed:
1. Added **kwargs to edit_message() signature — silently ignores finalize
2. Changed return type from bool to SendResult for Gateway compatibility
3. Switched from PATCH to POST /api/v1/messages/{id} — Zulip docs use
   POST for message editing (PATCH returns 405 Method Not Allowed)
4. Same fixes applied to delete_message() and send()

Discovered during Tanko Gen 4 testing.
2026-06-27 14:18:42 +00:00
..