fluxer-api: DELETE /users/@me/mentions/{id} for ApiRequest::DeleteRecentMention #362

Open
opened 2026-11-12 22:53:01 +00:00 by charles · 0 comments
Owner

Found while wiring Text chat 21 (#271). fluxer-core emits ApiRequest::DeleteRecentMention { message_id } (inbox, Text chat 15/30), but fluxer-api has no method for DELETE /users/@me/mentions/{message_id} (the devserver serves it, crates/fluxer-devserver/src/http.rs). The runtime answers it with a 501 CLIENT_NOT_WIRED without calling the server (apps/fluxer/src/runtime.rs, perform_chat). Add the method (204, Retry::Never) with a wiremock test, then map it to ApiResult::RecentMentionDeleted.

Found while wiring Text chat 21 (#271). `fluxer-core` emits `ApiRequest::DeleteRecentMention { message_id }` (inbox, Text chat 15/30), but `fluxer-api` has no method for `DELETE /users/@me/mentions/{message_id}` (the devserver serves it, `crates/fluxer-devserver/src/http.rs`). The runtime answers it with a 501 `CLIENT_NOT_WIRED` without calling the server (`apps/fluxer/src/runtime.rs`, `perform_chat`). Add the method (204, `Retry::Never`) with a wiremock test, then map it to `ApiResult::RecentMentionDeleted`.
charles added this to the Text chat milestone 2026-11-12 22:53:01 +00:00
Sign in to join this conversation.
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
charles/fluxer-native#362
No description provided.