mirror of
https://github.com/paymog/slack-cli.git
synced 2026-09-18 23:43:49 +08:00
3b846b9607
On Enterprise Grid with restricted teams, the edge API's SearchChannels and ClientUserBoot goroutines may fail while IMList succeeds. Since goroutine errors are non-fatal (partial results kept), the edge API returns only DMs with err=nil — so the standard API fallback never triggers, and public/private channels are missing from the cache. Fix: always supplement edge API results with full pagination of the standard conversations.list API, deduplicating by channel ID. This ensures we get DMs/MPIMs from the edge API AND public/private channels from the standard API regardless of which edge goroutines fail.
The "edge" package has been partially copied from rusq/slackdump.
Credits to the https://github.com/rusq.