# Correct flow for the case when the user returning to main session (Breakout room)

**URL:** <https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050>\
**Category:** macOS\
**Created:** [September 7, 2021, 2:30pm UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050 "2021-09-07T14:30:14Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [September 7, 2021, 2:30pm UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/1 "2021-09-07T14:30:14Z")

</div>

Hi!

Thank you for ‘Return to the main session’ mechanism adding in the last SDK update!

And there is one clarifying question about the flow of returning:  
When the host initiate ‘_returning_’ of particular user to the main session the app will be informed about it with the delegate method  
`onHostInviteReturn(toMainSession userName: String, handler: ZoomSDKBOMeetingReturnToMainSessionHandler)`.

As far as I understand to accept returning we should use `handler` and call `returnToMainSession()` method when we are ready to returning.  
What should we do next? Because after this step we receive  
`func onHasAttendeePermission(_ attendeeObject: ZoomSDKBOMeetingAttendee)`  
delegate method with empty breakout room name (`attendeeObject.getBOName()`) and value `ZoomSDK.shared()?.getMeetingService()?.getNewBreakoutRoomController()?.isInBOMeeting()` is equal `FALSE`.

Zoom Client that host the call show that the user is still in breakout room but he/she is marked as ‘_not joined_’

Is there one more step to return the attendee to the main session?

Thank you!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 8, 2021, 5:25pm UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/2 "2021-09-08T17:25:15Z")

</div>

Hi @anton.yereshchenko, thanks for the post.

Sorry to hear you’re running into issues with returning to the main session. Are you receiving any callbacks on the BO user’s side when you try to return to the main session? Also, what is the return value of the `returnToMainSession` method when this occurs? Does this happen 100% of the time?

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [September 9, 2021, 12:29pm UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/3 "2021-09-09T12:29:43Z")

</div>

Hi @jon.zoom, thank you for the reply.

The list of called delegate methods when the host initiates the particular participant return to Main session.

1. **onHostInviteReturn** (with the participant name).
2. **onLostAttendeePermission**.
3. **onBOControlStatusChanged** (with status == 2 - _Started_).
4. **onHasAttendeePermission** (with empty participant name and value `ZoomSDK.shared()?.getMeetingService()?.getNewBreakoutRoomController()?.isInBOMeeting()` that is equal `FALSE`).

The return value of the `returnToMainSession` is `Success`.  
Yes, this happens 100% of the time.  
By the way I have figured out that the original MacOS Zoom client has the same behaviour:

_The call with the host (Zoom MacOS client) and 1 participant (Safari Zoom web client)._

1. Create a call.
2. Contact to the call using Web Zoom.
3. Create BO.
4. Assign Web participant to the room.
5. Accept joining.
6. Web participant is in the room.
7. Move Web participant to Main Session.
8. Accept joining.

**Result** : Zoom MacOS client (Breakout rooms dialog) displays that Web participant in the room section and he/she is marked as ‘not joined’ (_As on the picture_).

 ![Screenshot 2021-09-09 at 15.04.54](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/f/4/f4043fae406463093fc56957f41e6af2c57e9875.png)

Could you say is it right behaviour or not?

Thank you!

---

<div class="post-metadata">

**Author:** ![Michael\_Condon](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_condon/32/13543_2.png) [@Michael\_Condon](https://devforum.zoom.us/u/Michael_Condon)\
**Post date:** [September 13, 2021, 10:08pm UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/4 "2021-09-13T22:08:39Z")

</div>

Hey @anton.yereshchenko,

@jon.zoom is currently out, but will follow up with you when he returns.

Thanks!  
Michael

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 15, 2021, 1:24am UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/5 "2021-09-15T01:24:32Z")

</div>

Hi @anton.yereshchenko,

Thanks for the detailed description. It definitely seems like this is functioning correctly. Rejoining the main meeting room will not cause an attendee to be unassigned from a BO room. They will remain assigned to that room unless they are assigned to another or the room has been deleted.

Thanks!

---

<div class="post-metadata">

**Author:** ![anton.yereshchenko](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/anton.yereshchenko/32/16916_2.png) [@anton.yereshchenko](https://devforum.zoom.us/u/anton.yereshchenko)\
**Post date:** [September 20, 2021, 9:23am UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/6 "2021-09-20T09:23:04Z")

</div>

Hi @jon.zoom,

Now it’s clear, thank you!

---

<div class="post-metadata">

**Author:** ![jon.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/jon.zoom/32/13495_2.png) [@jon.zoom](https://devforum.zoom.us/u/jon.zoom)\
**Post date:** [September 20, 2021, 6:18pm UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/7 "2021-09-20T18:18:34Z")

</div>

You are very welcome!

Don’t hesitate to reach back out with any additional questions. 🙂

---

<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 21, 2021, 4:19am UTC](https://devforum.zoom.us/t/correct-flow-for-the-case-when-the-user-returning-to-main-session-breakout-room/57050/8 "2021-10-21T04:19:11Z")

</div>

Closed on October 21, 2021, 4:19am UTC

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