Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the depth of join events returned from /make_join #383

Merged
merged 1 commit into from
May 27, 2022

Conversation

squahtx
Copy link
Contributor

@squahtx squahtx commented May 27, 2022

Signed-off-by: Sean Quah [email protected]

@squahtx squahtx requested review from a team May 27, 2022 12:42
@@ -45,6 +45,7 @@ func MakeJoinRequestsHandler(s *Server, w http.ResponseWriter, req *http.Request
Type: "m.room.member",
StateKey: &userID,
PrevEvents: []string{room.Timeline[len(room.Timeline)-1].EventID()},
Depth: room.Timeline[len(room.Timeline)-1].Depth() + 1,
Copy link
Contributor

Choose a reason for hiding this comment

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

Strictly speaking this is supposed to saturate at an upper limit. The value of that upper limit is a point of contention.

(This is almost certainly fine as it is though.)

@squahtx squahtx merged commit f3e07dc into main May 27, 2022
@squahtx squahtx deleted the squah/fix_make_join_depth branch May 27, 2022 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants