Text chat follow-up: execute ApiRequest::EditGroupDmIcon in the runtime #317

Open
opened 2026-11-12 17:35:24 +00:00 by charles · 0 comments
Owner

Text chat 19 (#269) adds ApiRequest::EditGroupDmIcon { channel_id, name, icon: FileRef } to fluxer-core: a group DM's new icon, which the store can only name by FileRef (no file content enters fluxer-core).

The runtime (Text chat 21, apps/fluxer) has to:

  • read the file behind the FileRef (path or clipboard handle),
  • refuse an animated WebP (the store only checks the media type and size: PNG, JPEG, WebP, AVIF, HEIC, HEIF, JXL, SVG, at most 10 MiB; the original also runs isAnimatedFile, useEditGroupForm.tsx:102),
  • send PATCH /channels/{id} with EditChannelRequest { name, icon: Some(Some("data:<content_type>;base64,...")) } (fluxer-api edit_channel), answering ApiResult::ChannelEdited,
  • keep the path and the data URI out of logs and --record.

Until then the variant falls into the runtime's _ => arm (501 CLIENT_NOT_WIRED).

Text chat 19 (#269) adds `ApiRequest::EditGroupDmIcon { channel_id, name, icon: FileRef }` to `fluxer-core`: a group DM's new icon, which the store can only name by `FileRef` (no file content enters `fluxer-core`). The runtime (Text chat 21, `apps/fluxer`) has to: - read the file behind the `FileRef` (path or clipboard handle), - refuse an animated WebP (the store only checks the media type and size: PNG, JPEG, WebP, AVIF, HEIC, HEIF, JXL, SVG, at most 10 MiB; the original also runs `isAnimatedFile`, `useEditGroupForm.tsx:102`), - send `PATCH /channels/{id}` with `EditChannelRequest { name, icon: Some(Some("data:<content_type>;base64,...")) }` (`fluxer-api` `edit_channel`), answering `ApiResult::ChannelEdited`, - keep the path and the data URI out of logs and `--record`. Until then the variant falls into the runtime's `_ =>` arm (501 `CLIENT_NOT_WIRED`).
charles added this to the Text chat milestone 2026-11-12 17:35:24 +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#317
No description provided.