# messageCollection addedMessages issue after 4.19 version

**URL:** <https://community.sendbird.com/t/messagecollection-addedmessages-issue-after-4-19-version/9590>\
**Category:** iOS\
**Created:** [May 29, 2024, 2:03am UTC](https://community.sendbird.com/t/messagecollection-addedmessages-issue-after-4-19-version/9590 "2024-05-29T02:03:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hjlee](https://avatars.discourse-cdn.com/v4/letter/h/e68b1a/32.png) [@hjlee](https://community.sendbird.com/u/hjlee)\
**Post date:** [May 29, 2024, 2:03am UTC](https://community.sendbird.com/t/messagecollection-addedmessages-issue-after-4-19-version/9590/1 "2024-05-29T02:03:44Z")

</div>

**[Problem/Question]**  
messageCollection addedMessages issue after 4.19 version

After updating SendbirdChatSDK iOS to 4.19.5, messageCollectionDelegate’s addedMessages makes error.  
The situation I found is below.  
This is the group channel case, which 2 people participate in.  
When user B send message, user A gets message from addedMessage of messageCollectionDelegate.  
When all of them was on the chat room (foreground ), It works fine. The message which sent is well transferred.  
But when user A gets message from push notification on the background, or other view controller-out of the chat room in the application-, addedmessages works twice.  
It gives the correct addeMessages first time, and right after it gives the 20 previous messages again, even though they are already showed above.

I downgraded SendbirdChatSDK iOS 4.18.0 with the same code, and it works fine without error above.

**[SDK Version]**  
SendbirdChatSDK iOS 4.19.5

**[Reproduction Steps]**  
No special code, just using messageCollectionDelegate’s addedMessages.

**[Frequency]**

- When getting message out of the chat room.
- After the view is shown again.

**[Current impact]**  
// How is this currently impacting your implementation?
