aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/user.cpp5
-rw-r--r--lib/user.h2
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);
diff --git a/lib/user.h b/lib/user.h
index 17f5625f..0023b44a 100644
--- a/lib/user.h
+++ b/lib/user.h
@@ -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,