port private channels logic

@henrikhodne wdyt?

I'd try this on staging org/com and enterprise.