retainAllMessages

fun retainAllMessages(messageIds: Collection<Uid<Message>>)

Retains only the messages with the specified messageIds. Removes the remaining messages.