stream-chat-js icon indicating copy to clipboard operation
stream-chat-js copied to clipboard

Giphy type messages are not getting deleted

Open hareshmabbly opened this issue 2 years ago • 16 comments

Describe the bug In message listing screen when we try to delete giphy type of message it is getting deleted but when you go back to channel list and come back again to same message list screen then you will able to see that deleted giphy again. And if we try to delete that giphy message again then we are getting error message from stream that then message is already deleted. I thing there is some issue with deleted_at and message.type because if you are in message listing screen and then delete the giphy message then we are getting value of delete_at and also message type is getting change to deleted but when you go back to channel list and from there come back again to channel you won't have that deleted_at and message.type value = deleted and that's why its showing giphy again.

Dev environment info (please complete/provide the following information):

  • Package version stream-chat-expo : "stream-chat-expo": "^5.9.0",
  • react-native or expo version : ^46.0.0
  • Device/Emulator : Android/ Ios (Also in web in stream-react library)

To Reproduce Steps to reproduce the behavior:

  1. Go to message list screen.
  2. Long press on giphy type of message.
  3. Click on delete option.
  4. Go back to channel list screen
  5. Come back again on message listing screen you will see that deleted giphy again.

Expected behavior Giphy should not be shown after deleting giphy message

hareshmabbly avatar Mar 14 '23 14:03 hareshmabbly