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

Incorrect last message for room #2026

Open
1 of 2 tasks
PhantomRay opened this issue Feb 11, 2025 · 4 comments
Open
1 of 2 tasks

Incorrect last message for room #2026

PhantomRay opened this issue Feb 11, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@PhantomRay
Copy link
Contributor

Checklist

  • I could not find a solution in the documentation, the existing issues or discussions.
  • I already asked for help in the chat

In which Project did the bug appear?

Other

If you selected "Other" as Project, please enter in which project the bug occurred.

SDK

On which platform did the bug appear?

iOS, Android

SDK Version

0.38

Describe the problem caused by this bug

After a fresh login, loaded rooms may contain incorrect last message. For example, a room's last message is supposed to be a text message, but it's linked to an event which was someone joined the room.

Will provide more details if I found any.

Steps To Reproduce

Do a fresh login (new database), some rooms may contain incorrect last messages.

Screenshots or Logs

No response

Security related

No response

@PhantomRay PhantomRay added the bug Something isn't working label Feb 11, 2025
@krille-chan
Copy link
Contributor

After a fresh login, loaded rooms may contain incorrect last message. For example, a room's last message is supposed to be a text message, but it's linked to an event which was someone joined the room.

Unfortunately this is very hard to solve as we don't know if a room has a potential last message at all, but we are working on to improve this

@PhantomRay
Copy link
Contributor Author

Thank you for letting me know. At the moment I use my custom logic on top of matrix sdk as a workaround.

@td-famedly
Copy link
Member

Thank you for letting me know. At the moment I use my custom logic on top of matrix sdk as a workaround.

Feel free to post your workaround which could help others btw :D

@PhantomRay
Copy link
Contributor Author

I only want to show events which are interested by me for last message. Member changing avatar/name are not one of them.
So I have a custom database to keep room info including last message.

I guess meanwhile, I just take whatever the SDK is binding to room entity.

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

No branches or pull requests

3 participants