RocketChat / Rocket.Chat.Android

Legacy mobile Rocket.Chat client in Kotlin for Android
https://rocket.chat
MIT License
871 stars 556 forks source link

[BUG] Deleted messages remain visible to the user who deleted them #1142

Open Pitstopper opened 6 years ago

Pitstopper commented 6 years ago

Your Rocket.Chat.Android version: 2.0.0 - 2.0.2 Mobile device model: Xiaomi Redmi 3 OS version: MIUI 9 (8.4.12) , Developer ROM Your Rocket.Chat Server version: 0.63.0 - 0.63.3

The message published on the channel remains visible after it's deleted and re-entered on the channel. It is visible only to the user who deleted it, all other users do not see it.

gifeditor_20180420_100923

thepowerprocess commented 6 years ago

This is happening for me too.

leonardoaramaki commented 6 years ago

@cloudsandladders @Pitstopper Can you confirm this is still happening on the latest build?

Pitstopper commented 6 years ago

@leonardoaramaki yes, I confirm.

chatnl commented 6 years ago

Same problem here. Several things go wrong:

rafaelks commented 6 years ago

@chatnl How are you clearing the history of a room? Are you using some specific method? You can try clearing all the cache data (Settings -> Apps -> Rocket.Chat -> Clear Data) to see if that clears the messages.

When I delete a message in the android app it is obviously not gone in the desktop version because one of my users replied to a deleted message later that day and that also made the deleted message reappear?!

That sounds like a bug. Can you explain the steps so we can try to reproduce it?

chatnl commented 6 years ago

I will try to reproduce this this weekend. The only thing I can imagine is that the user that replied to my deleted message had the desktop or android app open when I deleted the message and that his cache was still containing the message.

When I use Clear Data on my phone everything is gone, but I can't expect everybody that uses the chatbox to do that everyday. When I delete the data it should not be available anymore. I can imagine that it is cached locally but the client should see that the server has deleted all the messages and do so locally too.

I have been cleaning the room with the curl commands through the API.

rafaelks commented 5 years ago

This issue is blocked because there's no way to get deleted messages via API.