aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-18 22:15:08 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-18 22:15:08 +0200
commite4bfe89b3b2fea57a7267abb7cf892e15f1deeb5 (patch)
tree48fb25479773285aaa422b967893f29a2f8ed2d9 /lib/user.cpp
parente4a08bc431be9a2b680a4cd70f2ceda07c99b7bf (diff)
parent2187f26ebdc9edf7b3cbfa1d208c03c4384f4135 (diff)
downloadlibquotient-e4bfe89b3b2fea57a7267abb7cf892e15f1deeb5.tar.gz
libquotient-e4bfe89b3b2fea57a7267abb7cf892e15f1deeb5.zip
Merge branch 'kitsune-member-state-enum' into master
Diffstat (limited to 'lib/user.cpp')
-rw-r--r--lib/user.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/user.cpp b/lib/user.cpp
index 6cc9e161..c97e33a4 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -123,7 +123,7 @@ void User::rename(const QString& newName, const Room* r)
}
// #481: take the current state and update it with the new name
auto evtC = r->getCurrentState<RoomMemberEvent>(id())->content();
- Q_ASSERT_X(evtC.membership == MembershipType::Join, __FUNCTION__,
+ Q_ASSERT_X(evtC.membership == Membership::Join, __FUNCTION__,
"Attempt to rename a user that's not a room member");
evtC.displayName = sanitized(newName);
r->setState<RoomMemberEvent>(id(), move(evtC));