diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-23 15:40:54 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-03-24 15:12:26 +0900 |
commit | f7ee38b6c1d6c809feddd91647d83e6c6fdd3837 (patch) | |
tree | b159a9425428023c2f437bfcaba18ed207fee471 /user.cpp | |
parent | 962f7f4beb192810afe82bfd4b68613a96a69063 (diff) | |
download | libquotient-f7ee38b6c1d6c809feddd91647d83e6c6fdd3837.tar.gz libquotient-f7ee38b6c1d6c809feddd91647d83e6c6fdd3837.zip |
Dealing with direct chats
Receiving and caching m.direct (and other non-room account data along the way); Connection::addToDirectChats/removeFromDirectChats (might get siblings in Room eventually but not now), Connection/User::requestDirectChat. Closes #163.
Diffstat (limited to 'user.cpp')
-rw-r--r-- | user.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -287,6 +287,12 @@ bool User::setAvatar(QIODevice* source) std::bind(&Private::setAvatarOnServer, d.data(), _1, this)); } +void User::requestDirectChat() +{ + Q_ASSERT(d->connection); + d->connection->requestDirectChat(d->userId); +} + void User::Private::setAvatarOnServer(QString contentUri, User* q) { auto* j = connection->callApi<SetAvatarUrlJob>(userId, contentUri); |