Closed MikasaAckerman closed 2 years ago
Solved this by setting user configuration with admin role in backend.
Just making user an admin is a bad solution unless you fully understand the consequences.
In Conversations, each conversation is private, and as such it should not be visible to other users unless they are explicitly added to the conversation.
User1 can see the conversation because they are the creator, the only other user that can see it is the admin or REST backend. For user2 to see the same conversation either backend or user1 are supposed to add this user in the conversation.
In my code, user1 creates a conversation, and if use
conversation(withSidOrUniqueName:)
, user1 can join the conversation. But if user2 usesconversation(withSidOrUniqueName:)
directly, the errorDataFetchError.requiredDataCallsFailed
comes back. In the opposite , user2 creates a conversion but user1 can't join the conversation. I'm sure there is correct channelId in backend and be used correctly in iOS... So is there any conditions for joinConversation or attributes for conversation? Thanks in advance.