-
-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Add why_cant_send_ex() capable to only ignore specified con…
…ditions Before, `Chat::why_cant_send()` just returned `CantSendReason` after the first unsuccessful check allowing to handle the result and finally send the message if the condition is acceptable in which case the remaining checks are not done. This didn't result in any bugs, but to make the code more robust let's add a functional parameter to filter failed checks without early return.
- Loading branch information
Showing
1 changed file
with
67 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters