Hey, there’s two ways around it.
-
You can use
liveMessage
instead. 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
updatedAt
time with the current objectsupdatedAt
time 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.