From 67fad643e30eb38f51e496f6f4257c04eb0d8b92 Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Wed, 6 Dec 2017 09:10:50 +0900 Subject: Connection: undeprecate joinRoom() This is for the same reason as Connection::getThumbnail() - it's the only non-template (hence, supported by QML and Qt queued signal connections) way to invoke joining a room. --- connection.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/connection.h b/connection.h index 256dbd5f..fc6f4588 100644 --- a/connection.h +++ b/connection.h @@ -182,6 +182,8 @@ namespace QMatrixClient int requestedWidth, int requestedHeight) const; + virtual JoinRoomJob* joinRoom(const QString& roomAlias); + // Old API that will be abolished any time soon. DO NOT USE. /** @deprecated Use callApi() or Room::postMessage() instead */ @@ -190,8 +192,6 @@ namespace QMatrixClient /** @deprecated Use callApi() or Room::postReceipt() instead */ virtual PostReceiptJob* postReceipt(Room* room, RoomEvent* event) const; - /** @deprecated Use callApi() instead */ - virtual JoinRoomJob* joinRoom(const QString& roomAlias); /** @deprecated Use callApi() or Room::leaveRoom() instead */ virtual void leaveRoom( Room* room ); /** @deprecated User callApi() or Room::getPreviousContent() instead */ -- cgit v1.2.3