Hello @walter.rodriguez ,
I believe I have found a possible explanation, this is only a hypothesis but as far as I understand what you said here has not been entirely true the whole time.
If we fetch the response from
GET /my_group_channels/:channel-id
for two different channels:
-
Channel A. An old channel which React UIKit displays correctly via the App component (ie. no explicit
includeEmpty
)
-
Channel B. A newer channel which React UIKit does NOT display at all via the App component.
They both have 1 ADMIN ONLY message in their conversation.
We see that their lastMessage
field is very different:
// Channel A <-- correctly fetched
{
"message_survival_seconds": -1,
"unread_message_count": 0,
"is_distinct": false,
"custom_type": "",
"is_ephemeral": false,
"cover_url": "https://static.sendbird.com/sample/cover/cover_12.jpg",
"freeze": false,
"created_by": null,
"is_discoverable": false,
"is_public": false,
"data": "",
"disappearing_message": {
"message_survival_seconds": -1,
"is_triggered_by_message_read": false
},
"ignore_profanity_filter": false,
"is_super": false,
"name": "",
"member_count": 2,
"created_at": 1629325548,
"is_access_code_required": false,
"is_broadcast": false,
"last_message": {
"custom_type": "",
"mentioned_users": [],
"updated_at": 0,
"is_removed": false,
"type": "ADMM",
"message": "Messages are end-to-end encrypted. No one outside of this chat can read them",
"data": "",
"mention_type": "users",
"created_at": 1629325548249,
"channel_type": "group",
"channel_url": "url-channel-A",
"message_id": 1187906223
},
"unread_mention_count": 0,
"sms_fallback": {
"wait_seconds": -1,
"exclude_user_ids": []
},
"joined_member_count": 2,
"max_length_message": 5000,
"channel_url": "channel-url-a",
"channel": {
"name": "",
"member_count": 2,
"custom_type": "",
"channel_url": "channel-url-a",
"created_at": 1629325548,
"cover_url": "https://static.sendbird.com/sample/cover/cover_12.jpg",
"max_length_message": 5000,
"data": ""
}
}
whereas Channel B:
// Channel B <-- not fetched by <App />
{
"message_survival_seconds": -1,
"unread_message_count": 0,
"is_distinct": false,
"custom_type": "",
"is_ephemeral": false,
"cover_url": "https://static.sendbird.com/sample/cover/cover_12.jpg",
"freeze": false,
"created_by": null,
"is_discoverable": false,
"is_public": false,
"data": "",
"disappearing_message": {
"message_survival_seconds": -1,
"is_triggered_by_message_read": false
},
"ignore_profanity_filter": false,
"is_super": false,
"name": "",
"member_count": 2,
"created_at": 1631718592,
"is_access_code_required": false,
"is_broadcast": false,
"last_message": null,
"unread_mention_count": 0,
"sms_fallback": {
"wait_seconds": -1,
"exclude_user_ids": []
},
"joined_member_count": 2,
"max_length_message": 5000,
"channel_url": "channel-url-B",
"channel": {
"name": "",
"member_count": 2,
"custom_type": "",
"channel_url": "channel-url-B",
"created_at": 1631718592,
"cover_url": "https://static.sendbird.com/sample/cover/cover_12.jpg",
"max_length_message": 5000,
"data": ""
}
}
From here we can extract that before ADMM channels were considered a lastMessage
, but that does not happen with newer channels - hence needing an explicit includeEmpty
parameter. My suspicion is that something must have changed at your backend which no longers flags ADMIN messages as a message; which wasn’t the case before.
Let me know if this makes sense.