I am trying to create a one on one channel connection, however I am not able to figure out the format for creating an SDBUser. I am doing the following to try and create the channel.
SBDGroupChannel.createChannelWithUsers([("123456", "1234567"], isDistinct: true) { (channel, error) in
if error != nil {
NSLog("Error: %@", error!)
return
} else {
//this means that the channel was successfully created
print(channel)
//segue to the open chat view
//segue here DREW
}
}
Those Strings are the ID's as they appear in SendBird. There is an error that it expected type of SDBUser, and got String.
I have tried the following to get a SBDUser, but am getting the following value
let user1 = SBDUserListQuery.init(userIds: ["123456"])
but the user value is type SBDUserListQuery, so it still does not work.
I have not been able to find a solution in the SendBird docs