diff options
author | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-02 18:24:09 +0900 |
---|---|---|
committer | Kitsune Ral <Kitsune-Ral@users.sf.net> | 2018-07-04 21:34:54 +0900 |
commit | c9ace4f4037577846085fa6805a2918c5a2e745b (patch) | |
tree | e2714a724bd5c2ad7b0976ce2d48e5d192d20d8a /lib/user.h | |
parent | b52f3998a454a18ad46d1f276052965b96cd2ca9 (diff) | |
download | libquotient-c9ace4f4037577846085fa6805a2918c5a2e745b.tar.gz libquotient-c9ace4f4037577846085fa6805a2918c5a2e745b.zip |
Support ignoring users
Closes #215.
Diffstat (limited to 'lib/user.h')
-rw-r--r-- | lib/user.h | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -43,6 +43,8 @@ namespace QMatrixClient User(QString userId, Connection* connection); ~User() override; + Connection* connection() const; + /** Get unique stable user id * User id is generated by the server and is not changed ever. */ @@ -119,6 +121,10 @@ namespace QMatrixClient * Connection::directChatAvailable() */ void requestDirectChat(); + /** Add the user to the ignore list */ + void ignore(); + /** Remove the user from the ignore list */ + void unmarkIgnore(); signals: void nameAboutToChange(QString newName, QString oldName, |