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

Merged
merged 2 commits into from Mar 15, 2016

Conversation

Projects
None yet
2 participants
Owner

erikjohnston commented Mar 15, 2016

No description provided.

@NegativeMjark 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():
@NegativeMjark

NegativeMjark Mar 15, 2016

Contributor

I thought that the notifier preserved the logging context.

@erikjohnston

erikjohnston Mar 15, 2016

Owner

Eh, I c+p'd from above. /me looks

Contributor

NegativeMjark commented Mar 15, 2016

LGTM

erikjohnston added a commit that referenced this pull request Mar 15, 2016

Merge pull request #646 from matrix-org/erikj/reject_invite_federation
Persist rejection of invites over federation

@erikjohnston 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 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