aboutsummaryrefslogtreecommitdiff
path: root/lib/csapi/joining.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/csapi/joining.h')
-rw-r--r--lib/csapi/joining.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/lib/csapi/joining.h b/lib/csapi/joining.h
index f6200dff..d7c7cbb1 100644
--- a/lib/csapi/joining.h
+++ b/lib/csapi/joining.h
@@ -6,6 +6,7 @@
#include "jobs/basejob.h"
+#include "converters.h"
#include <QtCore/QJsonObject>
namespace QMatrixClient
@@ -23,11 +24,13 @@ namespace QMatrixClient
QString mxid;
QString token;
QJsonObject signatures;
+
+ bool omitted;
};
// Construction/destruction
- explicit JoinRoomByIdJob(const QString& roomId, const ThirdPartySigned& thirdPartySigned = {});
+ explicit JoinRoomByIdJob(const QString& roomId, const ThirdPartySigned& thirdPartySigned = omitted<ThirdPartySigned>());
~JoinRoomByIdJob() override;
// Result properties
@@ -53,16 +56,20 @@ namespace QMatrixClient
QString mxid;
QString token;
QJsonObject signatures;
+
+ bool omitted;
};
struct ThirdPartySigned
{
Signed signedData;
+
+ bool omitted;
};
// Construction/destruction
- explicit JoinRoomJob(const QString& roomIdOrAlias, const ThirdPartySigned& thirdPartySigned = {});
+ explicit JoinRoomJob(const QString& roomIdOrAlias, const ThirdPartySigned& thirdPartySigned = omitted<ThirdPartySigned>());
~JoinRoomJob() override;
// Result properties