aboutsummaryrefslogtreecommitdiff
path: root/lib/user.h
diff options
context:
space:
mode:
Diffstat (limited to 'lib/user.h')
-rw-r--r--lib/user.h6
1 files changed, 6 insertions, 0 deletions
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,