aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user.cpp')
-rw-r--r--lib/user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/user.cpp b/lib/user.cpp
index c463b42e..f0216454 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -269,8 +269,8 @@ void User::rename(const QString& newName, const Room* r)
const auto actualNewName = sanitized(newName);
MemberEventContent evtC;
evtC.displayName = actualNewName;
- connect(r->setMemberState(id(), RoomMemberEvent(move(evtC))),
- &BaseJob::success, this, [=] { updateName(actualNewName, r); });
+ connect(r->setState<RoomMemberEvent>(id(), move(evtC)), &BaseJob::success,
+ this, [=] { updateName(actualNewName, r); });
}
bool User::setAvatar(const QString& fileName)