fix(#193): clear stale slot history on channel reassignment
Channel message history is keyed by the reusable slot index, not by the channel's PSK. Adding a channel to a slot that previously held a different channel surfaced the prior occupant's messages (e.g. #echo history appearing in a newly QR-added channel). setChannel now clears the slot's stored history unless the slot already holds the same channel (same PSK, e.g. a rename). Only deleteChannel cleared before. Build-B (bleed-stop) of epic #190. Build-A (PSK-keyed history + migration) to follow. Accepted edge: re-adding the exact same channel that was orphaned device-side loses its old history (messages carry no PSK to match on).pull/202/head
parent
ed4dce94f3
commit
98841f1c2b
Loading…
Reference in new issue