Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

why do we check forgottenness when assessing event visibility? #3350

Closed
richvdh opened this issue Jun 6, 2018 · 4 comments
Closed

why do we check forgottenness when assessing event visibility? #3350

richvdh opened this issue Jun 6, 2018 · 4 comments
Labels
z-question (Deprecated Label)

Comments

@richvdh
Copy link
Member

richvdh commented Jun 6, 2018

There is some code mostly here, which was evolved from code introduced waaay back in the mists of time here, which checks if the user has "forgotten" a room, in which case we don't let them see an event.

The question is: given you can't forget a room without leaving it (or being banned from it...), why is this check necessary at all?

The associated db query is quite heavy-weight, so if we can safely drop it, that would be good.

@richvdh
Copy link
Member Author

richvdh commented Jun 22, 2018

discussed this with erik; conclusion was that we couldn't see any reason for this check, and should remove it.

@richvdh
Copy link
Member Author

richvdh commented Jul 24, 2018

It turns out that we have a sytest which relies on this: https://github.com/matrix-org/sytest/blob/00e30050ccf7eed830638151252934a583e050b6/tests/30rooms/31forget.pl#L186

The test asserts that if you're in a private room, which you leave, forget, and then rejoin, you can't see any history from before you rejoined. Possibly the logic here is that you may not want to leak to anyone looking over your shoulder your prior history in that room?

It feels like a weird edge-case, either way, and it's expensive to support, so I still think we should drop it.

richvdh added a commit to matrix-org/sytest that referenced this issue Jul 24, 2018
As per matrix-org/synapse#3350, we shouldn't
necessarily expect room history to be hidden when you rejoin a room you forgot.
@krombel
Copy link
Contributor

krombel commented Jul 29, 2018

@richvdh Can this be closed now?

@richvdh
Copy link
Member Author

richvdh commented Jul 30, 2018

thanks

@richvdh richvdh closed this as completed Jul 30, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
z-question (Deprecated Label)
Projects
None yet
Development

No branches or pull requests

3 participants