We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
在Utils.kt的isPermitted函数中,判断黑名单的逻辑有误。原代码为
Utils.kt
fun isPermitted(subject: Contact?): Boolean { return when (PluginConfig.mode) { ... "blacklist" -> { when { subject == null -> true subject is User && !PluginData.userSet.contains(subject.id) -> true subject is Group && !PluginData.groupSet.contains(subject.id) -> true else -> true } } else -> true } }
其中的else分支应当返回false。
else
false
The text was updated successfully, but these errors were encountered:
确实,when里面的else应该是false
when
Sorry, something went wrong.
5c4082c
No branches or pull requests
在
Utils.kt
的isPermitted函数中,判断黑名单的逻辑有误。原代码为其中的
else
分支应当返回false
。The text was updated successfully, but these errors were encountered: