diff options
author | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-18 22:15:08 +0200 |
---|---|---|
committer | Alexey Rusakov <Kitsune-Ral@users.sf.net> | 2021-07-18 22:15:08 +0200 |
commit | e4bfe89b3b2fea57a7267abb7cf892e15f1deeb5 (patch) | |
tree | 48fb25479773285aaa422b967893f29a2f8ed2d9 /lib/room.h | |
parent | e4a08bc431be9a2b680a4cd70f2ceda07c99b7bf (diff) | |
parent | 2187f26ebdc9edf7b3cbfa1d208c03c4384f4135 (diff) | |
download | libquotient-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.h | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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 |