From cd6fe80f84c1f1e44b4ee306ac2672a7287778c1 Mon Sep 17 00:00:00 2001 From: link2xt Date: Mon, 26 Jul 2021 00:07:19 +0300 Subject: Get rid of the contact requests chat --- chat.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'chat.h') diff --git a/chat.h b/chat.h index 6cb7769..70a813c 100644 --- a/chat.h +++ b/chat.h @@ -9,6 +9,7 @@ class DcChat : public QObject { Q_OBJECT Q_PROPERTY(uint32_t id READ getId CONSTANT) Q_PROPERTY(QString name READ getName CONSTANT); + Q_PROPERTY(bool isContactRequest READ isContactRequest CONSTANT) Q_PROPERTY(bool canSend READ canSend CONSTANT) Q_PROPERTY(bool muted READ isMuted CONSTANT) @@ -22,6 +23,7 @@ public: Q_INVOKABLE QString getName(); Q_INVOKABLE QString getProfileImage(); Q_INVOKABLE QColor getColor(); + Q_INVOKABLE bool isContactRequest (); Q_INVOKABLE bool canSend(); Q_INVOKABLE bool isMuted(); -- cgit v1.2.3-70-g09d2