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

Allow users to forget rooms #385

Merged
merged 6 commits into from
Nov 20, 2015
Merged

Allow users to forget rooms #385

merged 6 commits into from
Nov 20, 2015

Conversation

illicitonion
Copy link
Contributor

@NegativeMjark
Copy link
Contributor

LGTM apart from missing docstring and slightly odd sql.

self.runInteraction("forget_membership", f)

@defer.inlineCallbacks
def did_forget(self, 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.

docstring

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

def f(txn):
sql = (
"SELECT"
" COUNT(*)"
Copy link
Contributor

Choose a reason for hiding this comment

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

Why isn't this just SELECT forgotten FROM room_memberships?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@illicitonion
Copy link
Contributor Author

Added v2 sync filtering, PTAL

@NegativeMjark
Copy link
Contributor

LGTM

NegativeMjark added a commit that referenced this pull request Nov 20, 2015
@NegativeMjark NegativeMjark merged commit c6a15f5 into develop Nov 20, 2015
@illicitonion illicitonion deleted the daniel/forgetrooms branch January 28, 2016 13:48
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.

2 participants