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

Always try to invite the user when creating a server notice room#12704

Closed
babolivier wants to merge 3 commits into
developfrom
babolivier/mau_sn_invite
Closed

Always try to invite the user when creating a server notice room#12704
babolivier wants to merge 3 commits into
developfrom
babolivier/mau_sn_invite

Conversation

@babolivier
Copy link
Copy Markdown
Contributor

Fixes #12686

get_or_create_notice_room_for_user sounds like something that should also invite the user as part of the room's creation. In fact, a previous incarnation of it did. This means that the code interacting with it might make this assumption and miss calling maybe_invite_user_to_room, which means the user is never invited and new rooms are constantly created.

Introduced in #7199

Comment on lines 95 to 96
If we have not yet created a notice room for this user, create it, but don't
invite the user to it.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Presumably this sentence is now incorrect?

Comment thread changelog.d/12704.bugfix Outdated
Comment on lines 95 to 97
If we have not yet created a notice room for this user, create it, but don't
invite the user to it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Suggested change
If we have not yet created a notice room for this user, create it, but don't
invite the user to it.

Co-authored-by: David Robertson <davidr@element.io>
@babolivier
Copy link
Copy Markdown
Contributor Author

babolivier commented May 11, 2022

Actually this was on purpose, and this PR is not the right way to fix the issue. See #12686 (comment)

@babolivier babolivier closed this May 11, 2022
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.

Server notice rooms are created rapidly if triggered by maybe_send_server_notice_to_user

2 participants