mirror of
https://github.com/MarekWo/mc-webui.git
synced 2026-06-28 05:51:55 +02:00
bcaa550809
Live dm_delivered_info already carried the correct hash_size, but the DB row only kept delivery_path. After a reload the API filled in path_hash_size from the incoming path_len column (NULL for outgoing DMs → default 1), so 2-byte routes were re-rendered as single-byte hops. Added a delivery_path_hash_size column (auto-migrated, defaults to 1) that update_dm_delivery_info now stores alongside the delivery path, populated from the same hash_size already known by each delivery path (retry ctx, PATH event, delayed contact backfill). /api/dm/messages returns the new field; dm.js prefers it over path_hash_size when rendering the Route line, falling back to the old field for legacy rows.