# onUserLeave containting wrong ID for users who left the session

**URL:** <https://devforum.zoom.us/t/onuserleave-containting-wrong-id-for-users-who-left-the-session/76251>\
**Category:** iOS\
**Created:** [September 20, 2022, 1:01pm UTC](https://devforum.zoom.us/t/onuserleave-containting-wrong-id-for-users-who-left-the-session/76251 "2022-09-20T13:01:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sergiu.losetchi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sergiu.losetchi/32/41579_2.png) [@sergiu.losetchi](https://devforum.zoom.us/u/sergiu.losetchi)\
**Post date:** [September 20, 2022, 1:01pm UTC](https://devforum.zoom.us/t/onuserleave-containting-wrong-id-for-users-who-left-the-session/76251/1 "2022-09-20T13:01:52Z")

</div>

**Description**  
We found an issue with the iOS SDK.  
func onUserLeave(\_ helper: ZoomVideoSDKUserHelper?, users userArray: [ZoomVideoSDKUser]?)  
the ZoomVideoSDKUser object from userArray returns 0 for getID() whenever an user leaves the call, making it hard to detect which user to remove from the UI.

**Which iOS Video SDK version?**  
v1.4.0

**Smartphone (please complete the following information):**

- Device: iPhone 12/13
- OS: iOS 14/15

---

<div class="post-metadata">

**Author:** ![jackie.chen](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jackie.chen/32/19282_2.png) [@jackie.chen](https://devforum.zoom.us/u/jackie.chen)\
**Post date:** [September 21, 2022, 2:15am UTC](https://devforum.zoom.us/t/onuserleave-containting-wrong-id-for-users-who-left-the-session/76251/2 "2022-09-21T02:15:44Z")

</div>

Hi @sergiu.losetchi ,  
This issue have been fixed in next release. Btw, you no need use the user id for compare the user, you can user the object level compare directly if you have this case in your code.

```auto
[userA isEqual:userB]

```

---

<div class="post-metadata">

**Author:** ![sergiu.losetchi](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/sergiu.losetchi/32/41579_2.png) [@sergiu.losetchi](https://devforum.zoom.us/u/sergiu.losetchi)\
**Post date:** [September 22, 2022, 5:25pm UTC](https://devforum.zoom.us/t/onuserleave-containting-wrong-id-for-users-who-left-the-session/76251/3 "2022-09-22T17:25:47Z")

</div>

Thank you. Do you have any aproximate estimates when next version might be available?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 23, 2022, 3:25am UTC](https://devforum.zoom.us/t/onuserleave-containting-wrong-id-for-users-who-left-the-session/76251/4 "2022-10-23T03:25:48Z")

</div>

Closed on October 23, 2022, 3:25am UTC

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
