Constants

Maximum guests in a channel: 100

Maximum members in a direct channel: 20

Process

Create or open direct messages:

Call a save route with the direct channel identifier to get the channel id. this can create duplicata we have to check this.

Grouped channel process:

Only a Frontend operation nothing in Backend

Archive process:

Improvable ⚠️

On archive: just mark channel as archived and remove any guest attached to it.

On unarchive: mark channel as not archived and force myself to join it => at this point some user are still in channel and other are not.

On list channels: if I get a archived channel, we force me out of it without asking the user ONLY if the channel was public (we don't remove ourselve from private channels).