I'm implementing chat in my app for my students. I'm using Room Database to store the chat messages. The problem now is when I want to delete a chat message for all recipients.
I'm using FCM to delete a message from Room Database for every recipients. The problem is when the app is not running, FCM has no way to pass the code (using EventBus) to Activity to delete a row (or flag a row) in Room Database. The best way it can do is to send a Notification. But it doesn't make sense to send a notification when someone's deleting a message.
I notice in WA or other chat apps, the recipients' chat message got deleted when someone is doing "Deleting for Everyone" for a specific chat message. What is the trick to achieve that?