# Clarifying the behaviour of the 'onChatMessageNotification'

**URL:** <https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757>\
**Category:** macOS\
**Created:** [March 15, 2021, 5:37pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757 "2021-03-15T17:37:25Z")\
**Posts on this page:** 13\
**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:** [March 15, 2021, 5:37pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/1 "2021-03-15T17:37:25Z")

</div>

Hi!

I want to clarify the behaviour of the `ZoomSDKMeetingActionControllerDelegate` delegate method: `onChatMessageNotification`

If I send the individual message with the role host or co-host ZoomSDK will call this method otherwise - it won’t call this method.

Is it correct behaviour?

---

<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:** [March 15, 2021, 7:49pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/2 "2021-03-15T19:49:08Z")

</div>

Hi @anton.yereshchenko, thanks for the post.

This callback should be called whenever a chat message is successfully posted which the current user would be able to view. I am not aware of any scenarios in which the role of the user would impact the visibility of a chat message.

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:** [March 16, 2021, 5:31pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/3 "2021-03-16T17:31:55Z")

</div>

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

I have found out that in the case when the current user is Host or co-Host `onChatMessageNotification` delegate’s method will be called otherwise won’t.

Steps to reproduce this:

_Situation when method won’t be call._

1. Implement `ZoomSDKMeetingActionControllerDelegate` especially `onChatMessageNotification` method.
2. Connect to the existed call as attendee.
3. Try to send the individual message to anyone:  
`meetingActionController?.sendChat(message, toUser: userId, chatType: ZoomSDKChatMessageType_To_Individual)`

**Result** : `onChatMessageNotification` won’t be called.

_Situation when method will be called._

1. Implement `ZoomSDKMeetingActionControllerDelegate` especially `onChatMessageNotification` method.
2. Connect to the existed call as Host or co-Host.
3. Try to send the individual message to anyone:  
`meetingActionController?.sendChat(message, toUser: userId, chatType: ZoomSDKChatMessageType_To_Individual)`

**Result** : `onChatMessageNotification` will be called.

---

<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:** [March 16, 2021, 9:14pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/4 "2021-03-16T21:14:10Z")

</div>

Hi @anton.yereshchenko,

Thanks for the detailed response. This does appear to be functioning inconsistently, so we will need to investigate this behavior.

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:** [March 17, 2021, 7:46am UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/5 "2021-03-17T07:46:40Z")

</div>

Hi @jon.zoom ,

Thanks, and feel free to ask the questions while you will be reproducing this.

---

<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:** [March 17, 2021, 6:03pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/6 "2021-03-17T18:03:29Z")

</div>

Hi @anton.yereshchenko,

We will be fixing this in a future release. However, due to the amount of effort being focused on M1 support in the upcoming release, it may not be included until the following release. 🙂

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:** [March 18, 2021, 8:00am UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/7 "2021-03-18T08:00:32Z")

</div>

Hi @jon.zoom,

Yeah, absolutely, I understand that M1 support has the highest priority now. I will look forward to see those features in the change logs 😁

Thanks!

---

<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:** [March 18, 2021, 5:17pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/8 "2021-03-18T17:17:11Z")

</div>

Thank you for understanding! 💙

---

<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:** [April 18, 2021, 3:17am UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/9 "2021-04-18T03:17:12Z")

</div>

Closed on April 18, 2021, 3:17am UTC

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

---

<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:** [May 26, 2021, 11:33pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/10 "2021-05-26T23:33:29Z")

</div>

Hi @anton.yereshchenko,

A fix has been identified for this and will be included in the next release. 🙂

Thanks!

---

<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:** [May 26, 2021, 11:33pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/11 "2021-05-26T23:33:41Z")

</div>

Opened on May 26, 2021, 11:33pm UTC



---

<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:** [May 27, 2021, 3:03pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/12 "2021-05-27T15:03:24Z")

</div>

@jon.zoom thank you so much! It’s a great news 🎉

---

<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:** [May 27, 2021, 6:56pm UTC](https://devforum.zoom.us/t/clarifying-the-behaviour-of-the-onchatmessagenotification/45757/13 "2021-05-27T18:56:38Z")

</div>

You are very welcome!
