Currently, the listMessages method in the Plugin SDK only lists the messages visible to the user, rather than all messages in a conversation.
Although there is a workaround to use the Core API to list messages in the conversation instead, this is not as convenient as using the Plugin SDK directly.