own sent messages not rendered as own #62

Closed
opened 2026-04-19 10:51:55 +00:00 by zaelgohary · 0 comments
Member

The server stamps every outgoing message with sender_public_key = "system" (TODO in rpc.rs pending auth). The client computes is_own = sender == own_user_key, which never matches, so my own sent messages render left-aligned with a system label instead of right-aligned with Me.

Until auth lands, client-side workaround: in the optimistic send push, force is_own = true / sender_name = "Me" on the just-returned message. Subsequent full refetches will still show the server-stamped sender — acceptable until auth.

The server stamps every outgoing message with `sender_public_key = "system"` (TODO in `rpc.rs` pending auth). The client computes `is_own = sender == own_user_key`, which never matches, so my own sent messages render left-aligned with a `system` label instead of right-aligned with `Me`. Until auth lands, client-side workaround: in the optimistic send push, force `is_own = true` / `sender_name = "Me"` on the just-returned message. Subsequent full refetches will still show the server-stamped sender — acceptable until auth.
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
lhumina_code/hero_archipelagos#62
No description provided.