The API gives the option of deleting a dialog. Is it possible to clean a dialog (remove all messages) without deleting it?
There is no native way to delete all messages but keep the dialog, but there are two workarounds possible:
1) Write a script that will execute API calls to first retrieve messages of a particular dialog, and then delete these messages; 2) Delete manually via Quickblox admin panel.
Useful links:
Retrieve messages
Delete message
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With