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
Fix invite state to always include all events #2163
Conversation
erikjohnston
assigned
NegativeMjark
Apr 26, 2017
erikjohnston
referenced this pull request
Apr 26, 2017
Closed
On my custom server, preview invitations contains matrixid instead of displayname #2124
| @@ -250,9 +250,11 @@ def encode_invited(self, rooms, time_now, token_id): | ||
| """ | ||
| invited = {} | ||
| for room in rooms: | ||
| + logger.info("invite: %r", room.invite) |
| @@ -251,6 +266,9 @@ def serialize_event(e, time_now_ms, as_client_event=True, | ||
| if txn_id is not None: | ||
| d["unsigned"]["transaction_id"] = txn_id | ||
| + if not is_invite: | ||
| + d["unsigned"].pop("invite_room_state", None) |
|
LGTM other than possibly spurious logging and needing a couple more comments. |
erikjohnston
merged commit 25a96e0
into
develop
Apr 27, 2017
6 of 8 checks passed
Sytest Dendron (Commit)
Build #2033 origin/erikj/fix_invite_state in progress...
Details
Sytest Postgres (Commit)
Build #2864 origin/erikj/fix_invite_state in progress...
Details
Sytest Dendron (Merged PR)
Build finished.
Details
Sytest Postgres (Merged PR)
Build finished.
Details
Sytest SQLite (Commit)
Build #2932 origin/erikj/fix_invite_state succeeded in 6 min 39 sec
Details
Sytest SQLite (Merged PR)
Build finished.
Details
continuous-integration/travis-ci/pr
The Travis CI build passed
Details
continuous-integration/travis-ci/push
The Travis CI build passed
Details
psaavedra
added a commit
to psaavedra/synapse
that referenced
this pull request
May 19, 2017
erikjohnston
deleted the
erikj/fix_invite_state
branch
Oct 26, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
erikjohnston commentedApr 26, 2017
Currently they aren't sent unless the server has been restarted, as we accidentally edited the unsigned section of the event that causes the event in the cache to be wrong