Chat issue with IOS SDK

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+

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