Summary
When a user deletes a message using removeHistoryMessages, the message will be removed from the local user only. Other chat users can still get the messages from the server which means that the remote users would still see the messages.
Solution
The recall method is an ideal approach to handle such scenario. This method will recall messages from both local user and remote user. Once the recall method is triggered, the local user will receive the callback onRecallMessage containing the message body.
Additional Information
Please take note that the recall method only works for messages that are sent within the past 7-days. Trying to recall the messages that are sent beyond the 7-day timeframe will not work. In this case, you may have to use the REST API Recall method and utilize the 'force' parameter to recall expired messages. [1][img1]
[img1]