I create a Client and a private Channel I join. Then trying to add another user using:
Channel.add(identity)
I get
50200 - User not found
I know a member has to be a user first. How do I create a user using the JavaScript SDK?
EDIT:
The most important part of philnash answer is The first time a new Identity is encountered by Chat
. So, I just created another client using this identity and it actually has created the user. Simple.