# Users leaving the session not being reported

**URL:** <https://devforum.zoom.us/t/users-leaving-the-session-not-being-reported/74589>\
**Category:** iOS\
**Created:** [August 21, 2022, 4:21am UTC](https://devforum.zoom.us/t/users-leaving-the-session-not-being-reported/74589 "2022-08-21T04:21:12Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rokgregoric](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rokgregoric/32/40678_2.png) [@rokgregoric](https://devforum.zoom.us/u/rokgregoric)\
**Post date:** [August 21, 2022, 4:21am UTC](https://devforum.zoom.us/t/users-leaving-the-session-not-being-reported/74589/1 "2022-08-21T04:21:12Z")

</div>

**Description**  
When multiple users leave a session at a similar time (within ~1 sec), only one user leaving is reported via:

`onUserLeave(_ helper: ZoomVideoSDKUserHelper?, users userArray: [ZoomVideoSDKUser]?)`

**Which iOS Video SDK version?**

- 1.3.0 - 1.3.3

**To Reproduce**  
Steps to reproduce the behavior:

1. Create a session and make 3 users join the session
2. Make 2 users leave the session roughly at the same time - tap leave button on 2 devices at the same time
3. The third users that is still in the session gets `onUserLeave` called only once with the `userArray` with only 1 user object.

**Additional context**  
What i’ve noticed is that users that leave the room often have `ZoomVideoSDKUser.getUserID` with value of `0` (which is also wrong and could be reported as a separate issue).  
If multiple users have the same `userID` they treated as the same user, causing the issue ☝.

IMO fixing the `userID = 0` would help fix both issues.

---

<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 8, 2022, 9:50am UTC](https://devforum.zoom.us/t/users-leaving-the-session-not-being-reported/74589/2 "2022-09-08T09:50:38Z")

</div>

@rokgregoric  
Thanks for your reposing this issue.  
We have tracked this issue to develop team.  
Thanks,

---

<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 8, 2022, 7:50pm UTC](https://devforum.zoom.us/t/users-leaving-the-session-not-being-reported/74589/3 "2022-10-08T19:50:59Z")

</div>

Closed on October 8, 2022, 7:50pm UTC

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