Yes, chat messages are stored.
There is a possibility to manage chat history.
With QuickBlox application you can store, view and retrieve chat history without any additional API calls.
More details you can check in the corresponding section for each QuickBlox SDK in Chat section (then select the Chat history option from the right sidebar menu).
Here is the link to our documentation: Introduction | QuickBlox