Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a message through the API doesn't delete it from Android #4797

Closed
mararzu opened this issue Apr 26, 2023 · 2 comments
Closed

Deleting a message through the API doesn't delete it from Android #4797

mararzu opened this issue Apr 26, 2023 · 2 comments
Assignees
Labels
bug Something isn't working waiting for response Further information is requested

Comments

@mararzu
Copy link

mararzu commented Apr 26, 2023

Describe the bug
We are deleting messages from our server using your API
But on the Android app they are still visible, probably because of some cache
The only way to make them disappear is to clear storage and cache from the Android Settings

iOS SDK seems to be working fine, the messages are disappearing without the need to do anything

SDK version

  • 5.15.0

To Reproduce
Steps to reproduce the behavior:

  1. Send messages with user A
  2. Using the Android app and the default chat UI components of the SDK open the channel where those messages are on
  3. Using the API do a HardDelete of the messages of user A (see code we are using below)
  4. Notice that the Android app still shows the messages. You could close the app and open it again but messages still there

Expected behavior
After deleting the messages using the API the android UI components should delete those messages (maybe delete them from cache?)

Device:

  • Vendor and model: Pixel 5
  • Android version: 12

Backend code, using Go, that deletes the user and their messages
_, err = s.client.DeleteUsers(ctx, []string{user.StreamUserID}, stream.DeleteUserOptions{
User: stream.HardDelete,
Messages: stream.HardDelete,
})

@mararzu mararzu added the bug Something isn't working label Apr 26, 2023
@JcMinarro JcMinarro self-assigned this Apr 26, 2023
@JcMinarro
Copy link
Member

Hello @mararzu
A lot of improvements have been made on our v6 release, some of them related to the cache/db the SDK uses internally to keep the state of the list of messages.
The issue you reported should be fixed on this version.
Could you check it?

@JcMinarro JcMinarro added the waiting for response Further information is requested label Jul 2, 2024
Copy link
Contributor

This issue has been automatically closed because there has been no response to our request from the original author. Please don't hesitate to comment on the bug if you have any more information for us - we will reopen it right away! Thanks for your contribution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working waiting for response Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants