aboutsummaryrefslogtreecommitdiff
path: root/chat.h
diff options
context:
space:
mode:
authorlink2xt <link2xt@testrun.org>2021-08-01 19:23:41 +0300
committerlink2xt <link2xt@testrun.org>2021-08-01 19:23:41 +0300
commitef80085fab6d83a89a9a4309f2e7cdd272a812fe (patch)
tree111d76a214b57614ced4c1688901ce05e6770c5f /chat.h
parent9b2ce7538d28529f3c47e713779e4b0ae7b6aaf1 (diff)
downloadkdeltachat-ef80085fab6d83a89a9a4309f2e7cdd272a812fe.tar.gz
kdeltachat-ef80085fab6d83a89a9a4309f2e7cdd272a812fe.zip
Add "pinned" badge for pinned chats
Diffstat (limited to 'chat.h')
-rw-r--r--chat.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/chat.h b/chat.h
index 70a813c..0fc6152 100644
--- a/chat.h
+++ b/chat.h
@@ -12,6 +12,7 @@ class DcChat : public QObject {
Q_PROPERTY(bool isContactRequest READ isContactRequest CONSTANT)
Q_PROPERTY(bool canSend READ canSend CONSTANT)
Q_PROPERTY(bool muted READ isMuted CONSTANT)
+ Q_PROPERTY(int visibility READ getVisibility CONSTANT)
public:
explicit DcChat(QObject *parent = nullptr);
@@ -26,6 +27,7 @@ public:
Q_INVOKABLE bool isContactRequest ();
Q_INVOKABLE bool canSend();
Q_INVOKABLE bool isMuted();
+ Q_INVOKABLE int getVisibility();
private:
dc_chat_t *m_chat{nullptr};