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

A few changes on the slash command #4268

Merged
merged 4 commits into from
Oct 19, 2021
Merged

A few changes on the slash command #4268

merged 4 commits into from
Oct 19, 2021

Conversation

bmarty
Copy link
Member

@bmarty bmarty commented Oct 19, 2021

@bmarty bmarty requested a review from ganfra October 19, 2021 12:37
@github-actions
Copy link

Unit Test Results

  48 files  ±0    48 suites  ±0   48s ⏱️ -12s
  91 tests ±0    91 ✔️ ±0  0 💤 ±0  0 ±0 
244 runs  ±0  244 ✔️ ±0  0 💤 ±0  0 ±0 

Results for commit 4626199. ± Comparison against base commit aea2220.

Copy link
Member

@ganfra ganfra left a comment

Choose a reason for hiding this comment

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

Just one remark

}
} else {
ParsedCommand.ErrorSyntax(Command.PART)
when (messageParts.size) {
Copy link
Member

Choose a reason for hiding this comment

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

It's not equivalent to the code you replace, is it ok?

Copy link
Member Author

Choose a reason for hiding this comment

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

reason is removed here (iso EleWeb), if this is your concern.

popDraft()
}
is ParsedCommand.ChangeTopic -> {
handleChangeTopicSlashCommand(slashCommandResult)
popDraft()
Copy link
Contributor

Choose a reason for hiding this comment

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

is popDraft not needed for these commands or was it the cause of the crash?

Copy link
Member Author

Choose a reason for hiding this comment

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

popDraft is now handled by handleChangeTopicSlashCommand (in launchSlashCommandFlowSuspendable)

Copy link
Member Author

Choose a reason for hiding this comment

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

the crash fix is just 364654b

@bmarty bmarty merged commit 86b7fe6 into develop Oct 19, 2021
@bmarty bmarty deleted the feature/bma/improve_part branch October 19, 2021 15:01
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.

Slash commands are not robust anymore to exceptions /part doesn't part without parameters
3 participants