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

Require user to have left room to forget room #673

Merged
merged 3 commits into from
Mar 30, 2016
Merged

Conversation

erikjohnston
Copy link
Member

This dramatically simplifies the forget API code - in particular it no longer generates a leave event.

matrix-org/sytest#220

This dramatically simplifies the forget API code - in particular it no
longer generates a leave event.
user_id, room_id
))

yield self.store.forget(user_id, room_id)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does store.forget work if the user doesn't have a membership in the room?

@erikjohnston
Copy link
Member Author

@NegativeMjark PTAL

@NegativeMjark
Copy link
Contributor

Should forgetting fail if you aren't in the room?

Otherwise LGTM

@erikjohnston
Copy link
Member Author

Should forgetting fail if you aren't in the room?

I quite like that it doesn't, since then you can't use the API to tell if you had forgotten the room or were never in it.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants