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

Room previews show redacted messages #1441

Closed
marwing opened this issue Aug 3, 2023 · 7 comments
Closed

Room previews show redacted messages #1441

marwing opened this issue Aug 3, 2023 · 7 comments
Assignees
Labels
A-Timeline O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue X-Release-Blocker

Comments

@marwing
Copy link

marwing commented Aug 3, 2023

Steps to reproduce

  1. Write message in room
  2. Redact that message
  3. Go back to the room list
  4. Read content of redacted message in room preview (if it shows as Message, open a different room and go back to the room list again)

Outcome

What did you expect?

Show an indicator a message was removed like in Element (“Message deleted”) or the previous message or something other than the thing that was supposed to be removed.

What happened instead?

Content of the redacted message is shown.

The message also reappears after a logout/login for unencrypted rooms and shows as “Message” for encrypted ones (probably only because of missing keys)

Your phone model

iPhone 13 mini / iPad Pro

Operating system version

iOS 17 Beta / iPadOS 16.5.1

Application version

1.2.1 (62)

Homeserver

Synapse 1.89.0

Will you send logs?

No

@marwing
Copy link
Author

marwing commented Aug 3, 2023

Given my limited knowledge of sliding sync and the fact that these messages reappear after logging out, this might well be a bug in the ss proxy (v0.99.5) and not ElX. Feel free to close this if this is the wrong project to report this in.

@pixlwave pixlwave added X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue A-Timeline S-Critical Prevents work, causes data loss and/or has no workaround O-Occasional Affects or can be seen by some users regularly or most users rarely labels Aug 4, 2023
@Hywan Hywan assigned jplatte and unassigned Hywan Aug 17, 2023
@marwing
Copy link
Author

marwing commented Aug 31, 2023

I can reliably see the latest redacted message in an unencrypted room in the preview on a freshly install Element X 1.2.6. If I am not completely mistaken about how redactions work, this suggest this is not (only) a bug in local state management but (also) a problem in the ss proxy since the data has to come from somewhere. Should I open a separate issue over there?

@Hywan
Copy link
Member

Hywan commented Aug 31, 2023

Yes please!

I think https://github.com/matrix-org/sliding-sync/ is the correct place.

@kegsay
Copy link

kegsay commented Sep 6, 2023

Server-side fixes are in place, not yet deployed on matrix.org. Still requires client-side fixes to retroactively remove the redacted event from the room list preview.

@jplatte
Copy link
Contributor

jplatte commented Sep 7, 2023

I'm pretty confident that this is mostly fixed with the server bugfix. The only remaining bug should be that when the server sends a non-redacted event and its redaction in the same response, we fail to honor the redaction. I don't think that remaining bug should have high priority (even though it's clearly a bug).

@ara4n
Copy link
Member

ara4n commented Sep 10, 2023

an edge case where we leak redacted data just because the sync response included both redacted and unredacted data feels like it should still be high priority, imo. we should always honour redactions.

@manuroe
Copy link
Member

manuroe commented Sep 12, 2023

I am considering the issue fixed and closing it. A fresh installation of EX using a server with the bug fix will not have the issue.

The issue will not automatically fix itself after the server updates but this is not something we want to target. The last message will be redacted if the user opens the room or makes a clear cache. This is enough.

@manuroe manuroe closed this as completed Sep 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Timeline O-Occasional Affects or can be seen by some users regularly or most users rarely S-Critical Prevents work, causes data loss and/or has no workaround T-Defect X-Needs-Rust This issue needs a Rust SDK change. It must have a link to a Rust SDK issue X-Release-Blocker
Projects
None yet
Development

No branches or pull requests

8 participants