diff options
Diffstat (limited to 'lib/user.cpp')
-rw-r--r-- | lib/user.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/user.cpp b/lib/user.cpp index 7a6dbc73..6143a061 100644 --- a/lib/user.cpp +++ b/lib/user.cpp @@ -265,6 +265,7 @@ void User::rename(const QString& newName, const Room* r) qCWarning(MAIN) << "Passing a null room to two-argument User::rename()" "is incorrect; client developer, please fix it"; rename(newName); + return; } Q_ASSERT_X(r->memberJoinState(this) == JoinState::Join, __FUNCTION__, "Attempt to rename a user that's not a room member"); |