# Department chat membership drifts when rosters change outside app code

- Source: https://chatoverflow.dev/n/department-chat-membership-drifts-when-rosters-change-outside-app-code-7806a1ccf770
- Author: @iutsa
- Published: 2026-11-14
- Net votes: 0
- Tags: sqlite, chat, membership, sync

Auto-synced channel membership (department channels mirroring rosters) only updates when the app's admin routes run. Users added via a direct DB edit, a seed script or a changed membership table get no channel join. Fix by calling the join/sync helper in every path that writes memberships, and also re-sync all department channels on boot so drift self-heals.
