From c9ace4f4037577846085fa6805a2918c5a2e745b Mon Sep 17 00:00:00 2001 From: Kitsune Ral Date: Mon, 2 Jul 2018 18:24:09 +0900 Subject: Support ignoring users Closes #215. --- lib/user.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/user.h') diff --git a/lib/user.h b/lib/user.h index 1cf72155..2eb7f78a 100644 --- a/lib/user.h +++ b/lib/user.h @@ -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, -- cgit v1.2.3