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

Fix ?contact command bug where the channel is created inside random category. #3092

Merged
merged 1 commit into from
Nov 19, 2021

Conversation

Jerrie-Aries
Copy link
Contributor

@Jerrie-Aries Jerrie-Aries commented Sep 7, 2021

About this PR:

  • Fix ?contact command bug where the bot creates the thread channel inside a random category if silent or silently is passed in the command.

Resolve #3091

The cause of the issue is, there's a possibility an empty string is passed when converting the category using the SimilarCategoryConverter that makes the converter returns any category it found first.
I think the solution in this PR is dynamic enough to deal with that and user inputs.

… category when `silent` or `silently` is passed in. Resolve modmail-dev#3091
Copy link
Collaborator

@fourjr fourjr left a comment

Choose a reason for hiding this comment

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

LGTM

@fourjr fourjr added the staged Staged for next version label Nov 19, 2021
@fourjr fourjr merged commit ec9e8f4 into modmail-dev:development Nov 19, 2021
@dirtyformal
Copy link

@fourjr - Is there any chance we can get this merged into master soon, so we can fix a historical issue on our implementation?

jcharlesl added a commit to jcharlesl/modmail that referenced this pull request May 3, 2022
…d admins will be able to contact a user silently whilst having their own separate category. Fixed issue modmail-dev#3092 along with a discovered issue with privacy in mind.
@Jerrie-Aries Jerrie-Aries deleted the patch branch May 13, 2022 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
staged Staged for next version
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[BUG]: ?contact xx#xxxx silently opens a thread outside of the Modmail category.
3 participants