Upload keys endpoint
This commit is contained in:
parent
833de44d81
commit
b055b4a663
2 changed files with 9 additions and 0 deletions
|
@ -95,6 +95,7 @@ public:
|
|||
void setRoomInfoCallback(roomInfoCallback cb);
|
||||
void setRoomLimitedCallback(roomLimitedCallback cb);
|
||||
void syncLoop();
|
||||
void uploadKeys(json_t* body);
|
||||
};
|
||||
|
||||
}; // namespace Matrix
|
||||
|
|
|
@ -312,6 +312,14 @@ void Client::sendReadReceipt(std::string roomId, std::string eventId) {
|
|||
}
|
||||
}
|
||||
|
||||
void Client::uploadKeys(json_t* body) {
|
||||
std::string path = "/_matrix/client/v3/keys/upload/";
|
||||
json_t* ret = doRequest("POST", path, body);
|
||||
if (ret) {
|
||||
json_decref(ret);
|
||||
}
|
||||
}
|
||||
|
||||
void Client::setTyping(std::string roomId, bool typing, u32 timeout) {
|
||||
roomId = resolveRoom(roomId);
|
||||
std::string userId = getUserId();
|
||||
|
|
Loading…
Reference in a new issue