Hi @hoons I tried out this method but no luck, I tried digging deep and found that the getAllMetaArrays() calls the protected List<MessageMetaArray> mMetaArrays; to fetch the info and it turns out that this itself is empty so nothing is returned.
This is my request:
{
"custom_type": "image",
"message": "This is a user image caption",
"message_type": "MESG",
"user_id": "406172",
"sorted_metaarray": [
{
"key": "versions",
"value": [
1
]
},
{
"key": "file_uuid",
"value": [
"48d7a5dd-0e8b-4a1e-b8a1-60c75755081b"
]
}
]
}
and this is my response:
{
"message_survival_seconds": -1,
"custom_type": "image",
"mentioned_users": [],
"translations": {},
"updated_at": 0,
"is_op_msg": false,
"is_removed": false,
"user": {
"require_auth_for_profile_image": false,
"is_active": true,
"role": "",
"user_id": "406172",
"nickname": "Arjun",
"profile_url": "",
"metadata": {}
},
"file": {},
"message": "This is a user image caption",
"data": "",
"silent": false,
"type": "MESG",
"created_at": 1615959690625,
"sorted_metaarray": [
{
"key": "versions",
"value": [
"1"
]
},
{
"key": "file_uuid",
"value": [
"48d7a5dd-0e8b-4a1e-b8a1-60c75755081b"
]
}
],
"mention_type": "users",
"channel_url": "sendbird_group_channel_8751938_f4a3f58aab375c188db6cd73e01604c6700c3ee6",
"message_id": 83409064
}
and i tried fetching the meta arrray using val meta = message.getMetaArrays(listOf("versions", "file_uuid"))
I hope i’m not doing anything wrong