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 handling of deleted thread root messages #21466

Closed
janogarcia opened this issue Mar 18, 2022 · 9 comments · Fixed by matrix-org/matrix-js-sdk#2256
Closed

Incorrect handling of deleted thread root messages #21466

janogarcia opened this issue Mar 18, 2022 · 9 comments · Fixed by matrix-org/matrix-js-sdk#2256
Assignees
Labels
A-Redaction A-Threads O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Labs

Comments

@janogarcia
Copy link

janogarcia commented Mar 18, 2022

Steps to reproduce

  1. Make sure you have Settings > Preferences > Timeline > Show a placeholder for removed messages disabled.
  2. Create a thread.
  3. Delete the root message.

Note: We decided long ago to keep thread root messages always visible, even if the Show a placeholder for removed messages is disabled.

Outcome

It seems a regression has been introduced for deleted root messages, breaking the previous correct behavior.

Now, deleting a root message will:

  • 🔴 Make the root message and thread summary disappear completely from the main timeline.
  • 🔴 Keep showing the original contents for the deleted message in the thread timeline.
  • ✅ Show the correct "Message deleted" status in the thread list.

What should happen instead:

Please refer to the Figma mockups for the detailed context/flows.

In short:

  • Show the "Message deleted" state for the root message and keep displaying its thread summary in the main timeline (instead of "Make the root message and thread summary disappear completely from the main timeline.")
  • Immediately stop showing the original content for the deleted message in the thread timeline (instead of Keep showing the original contents for the deleted message in the thread timeline.)-

URL for webapp

develop.element.io

Application version

Element version: 071a541-react-4e4ce65f584b-js-a3f5ec1ba2fa Olm version: 3.2.8

Will you send logs?

Yes

@germain-gg germain-gg added S-Major Severely degrades major functionality or product features, with no satisfactory workaround A-Redaction O-Occasional Affects or can be seen by some users regularly or most users rarely labels Mar 18, 2022
@germain-gg germain-gg assigned t3chguy and unassigned germain-gg Mar 21, 2022
@t3chguy
Copy link
Member

t3chguy commented Mar 22, 2022

🔴 Make the root message and thread summary disappear completely from the main timeline.

So I think the issue is a bit more nuanced, the thread is still there, attached to the Message deleted, its just that its collapsed into the Summary. @janogarcia what should we do here?

image

@janogarcia
Copy link
Author

@t3chguy Unsure if I've understood your remarks.

I've edited the issue description to hopefully add more context. Please find all the details about the expected behavior in the Figma mockups for the Deleting the root message Flow.

It had been working correctly for months I'd say, only recently stopped working (last week) .

Maybe @gsouquet can clarify / shed some light on your question?

@janogarcia
Copy link
Author

janogarcia commented Mar 22, 2022

@t3chguy Another odd behavior that was introduced las week on deleted messages:

As stated in the issue description, the root message contents are not immediately hidden from the thread timeline. It keeps showing the original message.

When reloading the page the deleted root message will be rendered as expected in the thread timeline ("Deleted message" state) but preceded by a "You can't see earlier messages" notice which shouldn't be there.

Element  4  | 🧪 Playground Encrypted

@t3chguy
Copy link
Member

t3chguy commented Mar 22, 2022

"You can't see earlier messages" notice which shouldn't be there.

this happening randomly is unrelated to threads - #21434

@janogarcia
Copy link
Author

@t3chguy I was not aware of #21434, thanks. It happens consistently for the case I described, though, if that helps track it down.

@janogarcia
Copy link
Author

@t3chguy Updated the issue description after further internal discussion. I added a note on the decision we made long ago about displaying deleted root messages even when the Settings > Preferences > Timeline > Show a placeholder for removed messages option is disabled.

@t3chguy
Copy link
Member

t3chguy commented Mar 23, 2022

Cannot reproduce even with that option disabled.

image
image

@janogarcia
Copy link
Author

On my end, the deleted root messages consistently disappear from the main timeline as soon as I disable said option.

Element version: e638abf-react-9b2944294cf0-js-d0b964837f28
Olm version: 3.2.8

@t3chguy
Copy link
Member

t3chguy commented Mar 23, 2022

I tested on the same version, with & without show hidden events enabled, the root message never vanished from my room timeline.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Redaction A-Threads O-Occasional Affects or can be seen by some users regularly or most users rarely S-Major Severely degrades major functionality or product features, with no satisfactory workaround T-Defect Z-Labs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants