aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-08 19:37:23 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2019-07-08 19:42:43 +0900
commitf0c1269bf592f5ba1ccde3b667e6737fe75a335d (patch)
tree4c9e59ca6efb2dc126bc7ed111ad16e74dc9eccc /lib/user.cpp
parent36f63f398b8a36e0b276e78eceaf3c4123be6b13 (diff)
downloadlibquotient-f0c1269bf592f5ba1ccde3b667e6737fe75a335d.tar.gz
libquotient-f0c1269bf592f5ba1ccde3b667e6737fe75a335d.zip
Room: Set roomId and sender on pending events
Also: refactoring to streamline state events submission.
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 8bdcbe97..7ca97b1a 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -292,7 +292,7 @@ void User::rename(const QString& newName, const Room* r)
const auto actualNewName = sanitized(newName);
MemberEventContent evtC;
evtC.displayName = actualNewName;
- connect(r->setState(RoomMemberEvent(id(), move(evtC))),
+ connect(r->setState<RoomMemberEvent>(id(), move(evtC)),
&BaseJob::success, this, [=] { updateName(actualNewName, r); });
}