Description
The host and cohost status of a user are being incorrectly reported. Host is being reported as cohost and cohosts are being reported as host.
Which Mobile Meeting SDK version?
5.7.1.644
To Reproduce(If applicable)
Steps to reproduce the behavior:
- Join a meeting with multiple devices.
- Set up a scenario where you have User1 as host, User2 as cohost, and User3 without any special priveleges.
- Run this code:
if let service = MobileRTC.shared().getMeetingService(), let list = service.getInMeetingUserList() {
for id in list {
if let id = id as? UInt, let user = service.userInfo(byID: id) {
print("found \(user.userName), host? \(user.isHost), cohost? \(user.isCohost)")
}
}
}
- You will see that host and cohost are flipped. The above code would output the following:
found User1, host? false, cohost? true
found User2, host? true, cohost? false
found User3, host? false, cohost? false
Smartphone (please complete the following information):
- OS: iOS 14
Additional context
This was working in the previous version of the SDK.