aboutsummaryrefslogtreecommitdiff
path: root/lib/user.cpp
diff options
context:
space:
mode:
authorKitsune Ral <Kitsune-Ral@users.sf.net>2018-08-11 15:24:41 +0900
committerKitsune Ral <Kitsune-Ral@users.sf.net>2018-08-11 15:24:41 +0900
commitb028dff6bf6074fdeea5d6f50e97df074f53b45b (patch)
treec25f3577b2f5e358a58acba5a377e32a286fd0dd /lib/user.cpp
parent62e1550ed842a8a0d4c7b31d788176814a03e814 (diff)
downloadlibquotient-b028dff6bf6074fdeea5d6f50e97df074f53b45b.tar.gz
libquotient-b028dff6bf6074fdeea5d6f50e97df074f53b45b.zip
Connection::*DirectChat(): add overloads accepting User*
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 f6611309..12977b8a 100644
--- a/lib/user.cpp
+++ b/lib/user.cpp
@@ -299,9 +299,9 @@ bool User::setAvatar(QIODevice* source)
std::bind(&Private::setAvatarOnServer, d.data(), _1, this));
}
-void User::requestDirectChat()
+void User::requestDirectChat() const
{
- connection()->requestDirectChat(d->userId);
+ connection()->requestDirectChat(this);
}
void User::ignore()