# Duplicate calls to on(inMeetingChat messageID: String)

**URL:** <https://devforum.zoom.us/t/duplicate-calls-to-on-inmeetingchat-messageid-string/7185>\
**Category:** iOS\
**Created:** [December 23, 2019, 3:35pm UTC](https://devforum.zoom.us/t/duplicate-calls-to-on-inmeetingchat-messageid-string/7185 "2019-12-23T15:35:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Semireg](https://avatars.discourse-cdn.com/v4/letter/s/f6c823/32.png) [@Semireg](https://devforum.zoom.us/u/Semireg)\
**Post date:** [December 23, 2019, 3:35pm UTC](https://devforum.zoom.us/t/duplicate-calls-to-on-inmeetingchat-messageid-string/7185/1 "2019-12-23T15:35:56Z")

</div>

**Description**  
When a chat is received the MobileRTCMeetingServiceDelegate’s on(inMeetingChat messageID: String) is called twice with the same messageID.

**Which version?**  
Latest version as of writing: v4.4.57220.1211

**To Reproduce(If applicable)**  
Join meeting. Share a view. Receive a chat.

**Smartphone (please complete the following information):**

- Device: iPhone 7
- OS: 12.14.1

**Additional context**

```auto
    func on(inMeetingChat messageID: String) {
        guard let chat = service?.meetingChat(byID: messageID) else {
            Log.warning?.message("inMeetingChat not found")
            return
        }
        
        guard !chat.isMyself else {
            return // Ignore self chats
        }
        
        Log.info?.message("inMeetingChat received mesage \(messageID): \(chat.content)")
    }

```

Output:

```auto
**2019-12-23 09:34:33.387689-0600 App[4275:3459582] [CleanroomLogger] 🔷 inMeetingChat received mesage 3E274120-DAA4-418A-8205-11C4978B21D2: Optional("Hi") (HelpManager.swift:287)**
**2019-12-23 09:34:35.679678-0600 App[4275:3459582] [CleanroomLogger] 🔷 inMeetingChat received mesage 3E274120-DAA4-418A-8205-11C4978B21D2: Optional("Hi") (HelpManager.swift:287)**

```

---

<div class="post-metadata">

**Author:** ![Murray\_Li](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/murray_li/32/58_2.png) [@Murray\_Li](https://devforum.zoom.us/u/Murray_Li)\
**Post date:** [December 24, 2019, 2:01am UTC](https://devforum.zoom.us/t/duplicate-calls-to-on-inmeetingchat-messageid-string/7185/2 "2019-12-24T02:01:22Z")

</div>

Thanks，  
We do have this bug, the delegate will be called back twice, and we’ll fix it in the next release.  
Thank you.

---

<div class="post-metadata">

**Author:** ![DeveloperBot](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/developerbot/32/12632_2.png) [@DeveloperBot](https://devforum.zoom.us/u/DeveloperBot)\
**Post date:** [August 21, 2020, 7:08pm UTC](https://devforum.zoom.us/t/duplicate-calls-to-on-inmeetingchat-messageid-string/7185/3 "2020-08-21T19:08:56Z")

</div>

Closed on August 21, 2020, 7:08pm UTC


