aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/main.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 56c38a6..f8820f3 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -396,13 +396,13 @@ int main(int argc, char **argv)
serializer.add((const u8*)encryptedChannelKey.getCipherText().data, encryptedChannelKey.getCipherText().size);
const auto &localUserPublicKey = static_cast<OnlineLocalUser*>(currentChannel->getLocalUser())->getPublicKey();
auto localUserGroups = database->getUserGroups(*currentChannel->getNodeInfo().getRequestHash(), localUserPublicKey);
- if(!localUserGroups.empty())
+ if(localUserGroups.empty())
{
fprintf(stderr, "No group to add user to...\n");
return sibs::SafeSerializer();
}
lock_guard<recursive_mutex> lock(channelMessageMutex);
- currentChannel->addUser(localUserPublicKey, localUserGroups[0].getView());
+ currentChannel->addUser(userToAddPublicKey, localUserGroups[0].getView());
return serializer;
}
catch(std::exception &e)