diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-11 15:24:41 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-08-11 15:24:41 +0900 |
commit | b028dff6bf6074fdeea5d6f50e97df074f53b45b (patch) | |
tree | c25f3577b2f5e358a58acba5a377e32a286fd0dd /lib/user.cpp | |
parent | 62e1550ed842a8a0d4c7b31d788176814a03e814 (diff) | |
download | libquotient-b028dff6bf6074fdeea5d6f50e97df074f53b45b.tar.gz libquotient-b028dff6bf6074fdeea5d6f50e97df074f53b45b.zip |
Connection::*DirectChat(): add overloads accepting User*
Diffstat (limited to 'lib/user.cpp')
-rw-r--r-- | lib/user.cpp | 4 |
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() |