aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/rooms.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2022-06-01 10:08:00 +0200
committerGitHub <noreply@github.com>2022-06-01 10:08:00 +0200
commit6c735f9f55b936e9de1497c2f5896f0a018d4227 (patch)
treefccc042d6af708ddf0d540ea1166e8ae68365ecb /lib/csapi/rooms.h
parent49b0d191ab8917c61b28da3cfeaf1d28c143d5c8 (diff)
parentcd442611b19ec4a438d0847bf09b7bca99b494d3 (diff)
downloadlibquotient-6c735f9f55b936e9de1497c2f5896f0a018d4227.tar.gz
libquotient-6c735f9f55b936e9de1497c2f5896f0a018d4227.zip
#554: Fix update-api jobs
Diffstat (limited to 'lib/csapi/rooms.h')
-rw-r--r--lib/csapi/rooms.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/csapi/rooms.h b/lib/csapi/rooms.h
index f0815109..247fb13f 100644
--- a/lib/csapi/rooms.h
+++ b/lib/csapi/rooms.h
@@ -5,7 +5,6 @@
#pragma once
#include "events/eventloader.h"
-#include "events/roommemberevent.h"
#include "jobs/basejob.h"
namespace Quotient {
@@ -38,7 +37,7 @@ public:
// Result properties
/// The full event.
- EventPtr event() { return fromJson<EventPtr>(jsonData()); }
+ RoomEventPtr event() { return fromJson<RoomEventPtr>(jsonData()); }
};
/*! \brief Get the state identified by the type and key.
@@ -146,10 +145,7 @@ public:
// Result properties
/// Get the list of members for this room.
- EventsArray<RoomMemberEvent> chunk()
- {
- return takeFromJson<EventsArray<RoomMemberEvent>>("chunk"_ls);
- }
+ StateEvents chunk() { return takeFromJson<StateEvents>("chunk"_ls); }
};
/*! \brief Gets the list of currently joined users and their profile data.
@@ -157,9 +153,8 @@ public:
* This API returns a map of MXIDs to member info objects for members of the
* room. The current user must be in the room for it to work, unless it is an
* Application Service in which case any of the AS's users must be in the room.
- * This API is primarily for Application Services and should be faster to
- * respond than `/members` as it can be implemented more efficiently on the
- * server.
+ * This API is primarily for Application Services and should be faster to respond
+ * than `/members` as it can be implemented more efficiently on the server.
*/
class QUOTIENT_API GetJoinedMembersByRoomJob : public BaseJob {
public: