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

Deleted events visible in room previews (may be stale room previews in general) #17893

Closed
ara4n opened this issue Jul 6, 2021 · 12 comments · Fixed by matrix-org/matrix-react-sdk#12434
Assignees
Labels
A-Message-Previews 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 X-Regression

Comments

@ara4n
Copy link
Member

ara4n commented Jul 6, 2021

Description

if the most recent msg gets redacted in a room, you can still see it in the preview text in the room list.

Steps:

  1. Enable message previews
  2. Send a message "test"
  3. Edit the message "test 2"
  4. Delete the message

Expected:

The message "test 2" is not displayed in the preview

Observed:

The message "test 2" is displayed in the preview

@t3chguy
Copy link
Member

t3chguy commented Jul 6, 2021

image

image

@ara4n
Copy link
Member Author

ara4n commented Jul 6, 2021

might be that it was an edited msg that was redacted? or that the user parted the room afterwards?

@t3chguy
Copy link
Member

t3chguy commented Jul 6, 2021

Right with edits that sounds plausible given a redaction doesn't redact the entire edit chain and message previews will fall-through to the latest message they can show

@ara4n
Copy link
Member Author

ara4n commented Jul 7, 2021

actually, the problem seems to be that all room previews are very stale for me on Element Nightly version: 2021070403.

the preview for the room i'm currently looking at is currently ~7 messages behind the actual most recent msg in the room.

@ara4n ara4n changed the title redactions don't get reflected in room preview room previews failing to update to reflect new events in rooms. Jul 7, 2021
@SimonBrandner SimonBrandner added O-Uncommon Most users are unlikely to come across this or unexpected workflow S-Minor Impairs non-critical functionality or suitable workarounds exist X-Cannot-Reproduce and removed A-Redaction A-Message-Editing labels Aug 28, 2021
@ara4n
Copy link
Member Author

ara4n commented Sep 8, 2021

This is still happening, and it's really annoying as i just can't trust previews any more.

Screenshot 2021-09-08 at 22 20 48

i think it might be getting stuck after a gappy sync? or if the last message was an edit, it gets confused and doesn't update to the next-best value?

@ara4n
Copy link
Member Author

ara4n commented Oct 13, 2021

I just saw this again; this time it was simply that an edited msg appeared in the preview, but as this wasn't the most recent msg in the room, it looked like a bug. However, this doesn't explain the screenshot above, when Erik's msg wasn't an edit; just a stale update. I haven't seen this particular failure mode that recently.

@ara4n
Copy link
Member Author

ara4n commented Oct 19, 2021

Just had it again; this time it's not an edited message. It showed the 3rd most recent message as the preview rather than the most recent one.

@germain-gg
Copy link
Contributor

germain-gg commented Sep 27, 2022

Just had another flavour of this issue
Screen Shot 2022-09-27 at 10 33 57

@Johennes
Copy link
Contributor

Reproduced this just now myself.

Screenshot 2023-05-17 at 08 16 37

Screenshot 2023-05-17 at 08 16 28

There seems to be nothing exotic in-between sending the message and redacting it.

Screenshot 2023-05-17 at 08 19 29

@t3chguy
Copy link
Member

t3chguy commented May 17, 2023

@Johennes that sounds like #22334

@t3chguy
Copy link
Member

t3chguy commented May 17, 2023

Actually that one is a duplicate of this whole issue

@ara4n ara4n changed the title room previews failing to update to reflect new events in rooms. Deleted events visible in room previews (may be stale room previews in general) Apr 8, 2024
@ara4n ara4n added S-Major Severely degrades major functionality or product features, with no satisfactory workaround O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience and removed X-Cannot-Reproduce S-Minor Impairs non-critical functionality or suitable workarounds exist O-Uncommon Most users are unlikely to come across this or unexpected workflow labels Apr 8, 2024
@langleyd langleyd added O-Occasional Affects or can be seen by some users regularly or most users rarely and removed O-Frequent Affects or can be seen by most users regularly or impacts most users' first experience labels Apr 16, 2024
@langleyd
Copy link
Member

Added repro steps and updated Occurrence. I think at most this falls into the "some users regularly" category.

We should be following the logic of the timeline. I'll have a look and if it's easy to re-use that logic will add a fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Message-Previews 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 X-Regression
Projects
None yet
6 participants