Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
Persist rejection of invites over federation #646
Conversation
erikjohnston
assigned
NegativeMjark
Mar 15, 2016
erikjohnston
referenced this pull request
in matrix-org/sytest
Mar 15, 2016
Merged
Invite rejections: test that invitee no longer gets the invite down /sync #212
NegativeMjark
and 1 other
commented on an outdated diff
Mar 15, 2016
synapse/handlers/federation.py
| @@ -813,7 +813,23 @@ def do_remotely_reject_invite(self, target_hosts, room_id, user_id): | ||
| target_hosts, | ||
| signed_event | ||
| ) | ||
| - defer.returnValue(None) | ||
| + | ||
| + context = yield self.state_handler.compute_event_context(event) | ||
| + | ||
| + event_stream_id, max_stream_id = yield self.store.persist_event( | ||
| + event, | ||
| + context=context, | ||
| + backfilled=False, | ||
| + ) | ||
| + | ||
| + target_user = UserID.from_string(event.state_key) | ||
| + with PreserveLoggingContext(): |
|
|
|
LGTM |
erikjohnston
added a commit
that referenced
this pull request
Mar 15, 2016
erikjohnston
merged commit 91779b4
into
develop
Mar 15, 2016
8 checks passed
Flake8 + Packaging (Commit)
Build #130 origin/erikj/reject_invite_federation succeeded in 30 sec
Details
Flake8 + Packaging (Merged PR)
Build finished.
Details
Sytest Postgres (Commit)
Build #133 origin/erikj/reject_invite_federation succeeded in 5 min 15 sec
Details
Sytest Postgres (Merged PR)
Build finished.
Details
Sytest SQLite (Commit)
Build #134 origin/erikj/reject_invite_federation succeeded in 4 min 21 sec
Details
Sytest SQLite (Merged PR)
Build finished.
Details
Unit Tests (Commit)
Build #175 origin/erikj/reject_invite_federation succeeded in 1 min 12 sec
Details
Unit Tests (Merged PR)
Build finished.
Details
richvdh
deleted the
erikj/reject_invite_federation
branch
Dec 1, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
erikjohnston commentedMar 15, 2016
No description provided.