Fix nullptr check
This commit is contained in:
@@ -993,7 +993,7 @@ void NeoChatRoom::deleteMessagesByUser(const QString &user, const QString &reaso
|
|||||||
QString NeoChatRoom::joinRule() const
|
QString NeoChatRoom::joinRule() const
|
||||||
{
|
{
|
||||||
auto joinRulesEvent = currentState().get<JoinRulesEvent>();
|
auto joinRulesEvent = currentState().get<JoinRulesEvent>();
|
||||||
if (joinRulesEvent) {
|
if (!joinRulesEvent) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
return joinRulesEvent->joinRule();
|
return joinRulesEvent->joinRule();
|
||||||
|
|||||||
Reference in New Issue
Block a user