Hey, there’s two ways around it.
-
You can use
liveMessageinstead. It will handle any updates to a message. Also, will always only return you the latest message, when multiple updates are recieved. -
You could compare the the updated payload’s
updatedAttime with the current objectsupdatedAttime and use the latest one
As, for creator name and avatar, it kind of does not make sense to make it part of the messagePayload. There is however the creatorId which you could use to retrieve the required info.