aboutsummaryrefslogtreecommitdiff
path: root/lib/room.h
diff options
context:
space:
mode:
authorAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-18 22:15:08 +0200
committerAlexey Rusakov <Kitsune-Ral@users.sf.net>2021-07-18 22:15:08 +0200
commite4bfe89b3b2fea57a7267abb7cf892e15f1deeb5 (patch)
tree48fb25479773285aaa422b967893f29a2f8ed2d9 /lib/room.h
parente4a08bc431be9a2b680a4cd70f2ceda07c99b7bf (diff)
parent2187f26ebdc9edf7b3cbfa1d208c03c4384f4135 (diff)
downloadlibquotient-e4bfe89b3b2fea57a7267abb7cf892e15f1deeb5.tar.gz
libquotient-e4bfe89b3b2fea57a7267abb7cf892e15f1deeb5.zip
Merge branch 'kitsune-member-state-enum' into master
Diffstat (limited to 'lib/room.h')
-rw-r--r--lib/room.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/room.h b/lib/room.h
index d71bff9c..cdbfe58f 100644
--- a/lib/room.h
+++ b/lib/room.h
@@ -11,7 +11,7 @@
#include "connection.h"
#include "eventitem.h"
-#include "joinstate.h"
+#include "quotient_common.h"
#include "csapi/message_pagination.h"
@@ -245,6 +245,8 @@ public:
/**
* \brief Check the join state of a given user in this room
*
+ * \deprecated Use memberState and check against a mask
+ *
* \note Banned and invited users are not tracked separately for now (Leave
* will be returned for them).
*
@@ -252,6 +254,11 @@ public:
*/
Q_INVOKABLE Quotient::JoinState memberJoinState(Quotient::User* user) const;
+ //! \brief Check the join state of a given user in this room
+ //!
+ //! \return the given user's state with respect to the room
+ Q_INVOKABLE Quotient::Membership memberState(User* user) const;
+
//! \brief Get a display name (without disambiguation) for the given member
//!
//! \sa safeMemberName, htmlSafeMemberName