# \`lastMessage\` returns \`null\` erroneously

**URL:** <https://community.sendbird.com/t/lastmessage-returns-null-erroneously/9647>\
**Category:** API\
**Tags:** group-channel\
**Created:** [June 10, 2024, 6:52pm UTC](https://community.sendbird.com/t/lastmessage-returns-null-erroneously/9647 "2024-06-10T18:52:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chrisflockhealth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/chrisflockhealth/32/4930_2.png) [@chrisflockhealth](https://community.sendbird.com/u/chrisflockhealth)\
**Post date:** [June 10, 2024, 6:52pm UTC](https://community.sendbird.com/t/lastmessage-returns-null-erroneously/9647/1 "2024-06-10T18:52:54Z")

</div>

**[Problem/Question]**  
I am trying to use this endpoint:  
`GET https://api-{application_id}.sendbird.com/v3/group_channels`  
([List group channels | Chat Platform API | Sendbird Docs](https://sendbird.com/docs/chat/platform-api/v3/channel/listing-channels-in-an-application/list-group-channels))

One thing I have noticed is that for a group channel which DOES have existing messages but where the last message in the channel is an ADMIN message, the `lastMessage` field returns `null`. This is unexpected behavior. I would expect this field to return either:

1. the last user or file message sent in the channel
2. the admin message that is actually the last message sent in the channel

**[Frequency]**  
100% of the time

**[Current impact]**  
Cannot show the latest message in a channel list UI if the last message sent was an admin message

---

<div class="post-metadata">

**Author:** ![Suhirtha\_Ayyappan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/suhirtha_ayyappan/32/3983_2.png) [@Suhirtha\_Ayyappan](https://community.sendbird.com/u/Suhirtha_Ayyappan)\
**Post date:** [December 2, 2024, 4:40pm UTC](https://community.sendbird.com/t/lastmessage-returns-null-erroneously/9647/3 "2024-12-02T16:40:49Z")

</div>

Hi @chrisflockhealth,  
We have reviewed this use case and could not reproduce the issue. The last\_message will only return null if there is no message sent in the group channel.

Please let us know if you are still experiencing this problem.
