Filtering Messages
By filtering messages, we can get messages that only match certain criteria:
with the
includingTags
andexcludingTags
parameters you can filter messages based on the tags set (or not set) in each messagewith the
messageParentFilter
parameter you can filter messages according to their relationship:if no
.noParent
is passed, any message will matchif
parent(id: String?)
is passed withoutid
, search all messages without a parentif a non-zero id
id
passed: query for all messages with theparentId
as parent.
with the
type
parameter you can filter messages according to their typeif no
type
is passed, any message will matchif an
AmityMessageType
is passed, query for all messages with the specific typeAmityMessageType.text
for text messagesAmityMessageType.image
for image messagesAmityMessageType.file
for file messagesAmityMessageType.audio
for audio messagesAmityMessageType.video
for video messagesAmityMessageType.custom
for custom messages
Last updated