From b028dff6bf6074fdeea5d6f50e97df074f53b45b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Sat, 11 Aug 2018 15:24:41 +0900 Subject: Connection::*DirectChat(): add overloads accepting User* --- lib/user.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/user.cpp') 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() -- cgit v1.2.3