# Chat issue with IOS SDK

**URL:** <https://devforum.zoom.us/t/chat-issue-with-ios-sdk/36426>\
**Category:** Meeting SDK\
**Created:** [November 19, 2020, 10:33am UTC](https://devforum.zoom.us/t/chat-issue-with-ios-sdk/36426 "2020-11-19T10:33:50Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![issam.abo](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/issam.abo/32/18954_2.png) [@issam.abo](https://devforum.zoom.us/u/issam.abo)\
**Post date:** [November 19, 2020, 10:33am UTC](https://devforum.zoom.us/t/chat-issue-with-ios-sdk/36426/1 "2020-11-19T10:33:50Z")

</div>

**Description**  
hello,  
we use this code to open the chat.

> meetingService.presentMeetingChatViewController(self, userId: Int(meetingService.myselfUserID()))

but it doesn’t work. if we use

> meetingService.presentMeetingChatViewController(self, userId: 0)

chat is opening

what shall we use for userID?

**Which version?**  
The SDK version = v 5.0.24433.0616

**Smartphone :**

- Device: iPhone 6 (12.4.7) , iPhone 7 (14.1) , iPhone 6s+

---

<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:** [November 19, 2020, 9:48pm UTC](https://devforum.zoom.us/t/chat-issue-with-ios-sdk/36426/2 "2020-11-19T21:48:54Z")

</div>

Hey @issam.abo,

Thanks for using the dev forum, it is good to see you again.

You can use 0 for the userID, which will present the chatController and allow the user to chat with the entire meeting at once.

Otherwise, you can specify another userID to present the chatController to send a message privately to one user.

The reason meetingService.presentMeetingChatViewController(self, userId: Int(meetingService.myselfUserID())) does not work is because you cannot send a chat to yourself.

Let me know if you have any other questions.  
Thanks!  
Michael
