port private channels logic

@henrikhodne wdyt?

I'd try this on staging org/com and enterprise.
why do you need this require? isn't that this file?