stream-chat-react-native icon indicating copy to clipboard operation
stream-chat-react-native copied to clipboard

Giphy type messages are not getting deleted

Open hareshmabbly opened this issue 2 years ago • 17 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

Hey @hareshmabbly, we were not able to reproduce this issue on our end. Do you have any additional customization that might be interrupting with the behaviour?

khushal87 avatar Mar 22 '23 05:03 khushal87

khushal87 avatar Mar 22 '23 05:03 khushal87

@khushal87 please try to add atleast 5 giphy and then delete like 3rd any 4th i am 100% if you playaround with giphys for like 10 minutes and delete and add then you will this bug also i sent video to get stream support team.

hareshmabbly avatar Mar 22 '23 05:03 hareshmabbly

@khushal87 please try to add atleast 5 giphy and then delete like 3rd any 4th i am 100% if you playaround with giphys for like 10 minutes and delete and add then you will this bug also i sent video to get stream support team.

Playing with giphy for the last 10 minutes and still couldn't reproduce this issue. Tried the same as you suggested with 5 giphy but that too works.

khushal87 avatar Mar 22 '23 05:03 khushal87

Do you have offline support enabled? @hareshmabbly

khushal87 avatar Mar 22 '23 05:03 khushal87

@khushal87 no we don't have

hareshmabbly avatar Mar 22 '23 06:03 hareshmabbly

Can you share the video or may be the support ticket number where you have shared your concerns?

khushal87 avatar Mar 22 '23 06:03 khushal87

35427 this is the support ticket number

https://user-images.githubusercontent.com/102948668/226826069-0d1217b9-ab3d-4fbd-8edf-d845f8051f53.mp4

hareshmabbly avatar Mar 22 '23 07:03 hareshmabbly

Did you have an active internet connection at that time, it might be a case that the message wasn't deleted at all because of a network issue?

khushal87 avatar Mar 22 '23 07:03 khushal87

@khushal87 yes internet connection was stable and it was posted by our QA team and then i was also able to reproduce it.

hareshmabbly avatar Mar 22 '23 07:03 hareshmabbly

You also face this issue with React SDK, right? Asking, since you have mentioned it in your issue desc.

khushal87 avatar Mar 22 '23 07:03 khushal87

Yes you are right same issue on react and thats why i thing i this issue is there then its from backend see when i get message list in that i don't get property deleted_at and also type of message is not delete also.

hareshmabbly avatar Mar 22 '23 07:03 hareshmabbly

@khushal87 do we have any update on this ?

hareshmabbly avatar Mar 28 '23 12:03 hareshmabbly

@hareshmabbly we're still looking into this, please follow this issue for future updates.

vanGalilea avatar Apr 11 '23 11:04 vanGalilea

@hareshmabbly can you please add a logger- see precisely how in our docs.

Please send us the logs gathered while the issue is reproduced.

vanGalilea avatar Apr 11 '23 13:04 vanGalilea

logs.txt @vanGalilea these are the logs we are getting when we try to delete the giphy. So basically i added one giphy first then deleted it and it was removed successfully now i added second giphy and deleted it again and it was deleted but now when i go to the channel again i see that giphy again.

You could try same using postman api and as far as i understand it might have something to do with message listing api. Please let me if anything else needed from my side

hareshmabbly avatar Apr 24 '23 06:04 hareshmabbly

Hey @hareshmabbly, please upgrade our SDK version. That might help. We are still not able to reproduce this issue.

khushal87 avatar Aug 27 '24 10:08 khushal87

Closing this issue for a long time of inactivity and inability to reproduce it. Please feel free to reopen it if you think it's still relevant, and we can debug it further. Thanks 😄

khushal87 avatar Dec 16 '24 12:12 khushal87