# Unable to Group Custom Messages with UIKit v3

**URL:** https://community.sendbird.com/t/unable-to-group-custom-messages-with-uikit-v3/4452
**Category:** Sendbird Chat UIKit
**Tags:** uikit, bug
**Created:** [April 15, 2022, 9:42pm UTC](https://community.sendbird.com/t/unable-to-group-custom-messages-with-uikit-v3/4452 "2022-04-15T21:42:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![WilG](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/wilg/32/2337_2.png) [@WilG](https://community.sendbird.com/u/WilG)
#### Post date: [April 15, 2022, 9:42pm UTC](https://community.sendbird.com/t/unable-to-group-custom-messages-with-uikit-v3/4452/1 "2022-04-15T21:42:46Z")

</div>

I was unable to get message grouping to work with the UIKit v3 Beta when using the new [renderMessage function](https://sendbird.com/docs/uikit/v3/react/introduction/migration-guide#4-changed-renderchatitem-to-rendermessage). If you return a string it seems to be work, but anything custom and even just a div wrapped around the message string and it wont group (see screenshot).

Perhaps theres a missing portion to the docs with chainTop/Bottom? Some better samples here would help. Thanks!

 ![Screen Shot 2022-04-15 at 4.35.11 PM](https://us1.discourse-cdn.com/flex020/uploads/sendbird/original/2X/d/d81aaa71ec10d1381f1f0bbc67b38ca13383ea81.jpeg)

---

<div class="post-metadata">

### Author: ![taha.saghir](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/taha.saghir/32/2094_2.png) [@taha.saghir](https://community.sendbird.com/u/taha.saghir)
#### Post date: [May 10, 2022, 5:46pm UTC](https://community.sendbird.com/t/unable-to-group-custom-messages-with-uikit-v3/4452/2 "2022-05-10T17:46:45Z")

</div>

Hi @WilG, welcome to the Senbird community! Sorry for the delay in getting back to you.

Can you please share your code snippet?
