# When a message/customType is changed 'onMessageUpdated' is not getting triggered

**URL:** <https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349>\
**Category:** JavaScript\
**Tags:** group-channel\
**Created:** [January 14, 2023, 8:30am UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349 "2023-01-14T08:30:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Prashanth\_Karanth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/prashanth_karanth/32/3447_2.png) [@Prashanth\_Karanth](https://community.sendbird.com/u/Prashanth_Karanth)\
**Post date:** [January 14, 2023, 8:30am UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349/1 "2023-01-14T08:30:07Z")

</div>

**[Problem/Question]**  
When a message/customType is changed ‘onMessageUpdated’ is not getting triggered for the sender or the participating user

**[SDK Version]**  
@sendbird/chat version 4.2.4

**[Reproduction Steps]**  
I’m adding group handler similar to onMessageRecived or onMessageDeleted, which are working  
but not onMessageUpdated

**[Frequency]**  
Not working at all

**[Current impact]**  
It is very critical because update of messages is not propagating

---

<div class="post-metadata">

**Author:** ![Prashanth\_Karanth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/prashanth_karanth/32/3447_2.png) [@Prashanth\_Karanth](https://community.sendbird.com/u/Prashanth_Karanth)\
**Post date:** [January 16, 2023, 5:47pm UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349/2 "2023-01-16T17:47:25Z")

</div>

How can I EXCALATE this issue?

---

<div class="post-metadata">

**Author:** ![Brian\_Sang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brian_sang/32/1228_2.png) [@Brian\_Sang](https://community.sendbird.com/u/Brian_Sang)\
**Post date:** [January 17, 2023, 4:21am UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349/3 "2023-01-17T04:21:21Z")

</div>

Hi,

I’ve checked with v4.2.4 that onMessageUpdated() gets triggered normally.

FYI, notified devices: All devices where client apps with the channel are in the foreground, except the device where the message was updated.

> **[Add or remove a channel event handler | Chat JavaScript SDK | Sendbird Docs](https://sendbird.com/docs/chat/v4/javascript/event-handler/managing-channel-event-handlers/add-or-remove-a-channel-event-handler#4-list-of-group-channel-events)**
>
> To receive and retrieve information about events happening in channels from the Sendbird server, add a channel event handler with its UNIQUE\_HANDLER\_ID by calling sb.groupChannel.addGroupChannelHandler() for group channel events and...

---

<div class="post-metadata">

**Author:** ![Prashanth\_Karanth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/prashanth_karanth/32/3447_2.png) [@Prashanth\_Karanth](https://community.sendbird.com/u/Prashanth_Karanth)\
**Post date:** [January 17, 2023, 4:58am UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349/4 "2023-01-17T04:58:57Z")

</div>

Hi Brain,

Thanks for your prompt response… I have implemented onMessageUpdated similar to onMessageReceived with a unique handler id, but onMessageUpdated is one that is not working. I’m testing it with two different browsers chrome and Edge. Chrome user is updating the message sent by him earlier and the participant user is on Edge.

Thanks.

---

<div class="post-metadata">

**Author:** ![Brian\_Sang](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/brian_sang/32/1228_2.png) [@Brian\_Sang](https://community.sendbird.com/u/Brian_Sang)\
**Post date:** [January 17, 2023, 5:41am UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349/5 "2023-01-17T05:41:07Z")

</div>

It works for me.

[steps]

1. user-a sends a message and updates a message from a chrome browser
2. user-b checks the onMessageUpdated() handler logs from a firefox browser

or

1. user-a sends a message and updates a message from an android device
2. user-b checks the onMessageUpdated() handler logs from a firefox browser

---

<div class="post-metadata">

**Author:** ![Prashanth\_Karanth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/prashanth_karanth/32/3447_2.png) [@Prashanth\_Karanth](https://community.sendbird.com/u/Prashanth_Karanth)\
**Post date:** [January 17, 2023, 5:54am UTC](https://community.sendbird.com/t/when-a-message-customtype-is-changed-onmessageupdated-is-not-getting-triggered/6349/6 "2023-01-17T05:54:19Z")

</div>

Thanks, I will check it out again.
