diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/user.cpp | 5 | ||||
-rw-r--r-- | lib/user.h | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/lib/user.cpp b/lib/user.cpp index bfd23ae2..eec41957 100644 --- a/lib/user.cpp +++ b/lib/user.cpp @@ -312,6 +312,11 @@ void User::unmarkIgnore() connection()->removeFromIgnoredUsers(this); } +bool User::isIgnored() const +{ + return connection()->isIgnored(this); +} + void User::Private::setAvatarOnServer(QString contentUri, User* q) { auto* j = connection->callApi<SetAvatarUrlJob>(userId, contentUri); @@ -125,6 +125,8 @@ namespace QMatrixClient void ignore(); /** Remove the user from the ignore list */ void unmarkIgnore(); + /** Check whether the user is in ignore list */ + bool isIgnored() const; signals: void nameAboutToChange(QString newName, QString oldName, |