summary refs log tree commit diff
path: root/src/UserSettingsPage.h
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2020-01-27 15:59:25 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2020-01-27 15:59:25 +0100
commite2f547149a5d54747ab44a6f777f91edd8d2f76e (patch)
tree54deca30be077a1fb258d66e558aef25866cf328 /src/UserSettingsPage.h
parentUpdate readme with new build instructions (diff)
downloadnheko-e2f547149a5d54747ab44a6f777f91edd8d2f76e.tar.xz
Allow sending messages as plain text
Diffstat (limited to 'src/UserSettingsPage.h')
-rw-r--r--src/UserSettingsPage.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/UserSettingsPage.h b/src/UserSettingsPage.h
index 28236e83..8658e80e 100644
--- a/src/UserSettingsPage.h
+++ b/src/UserSettingsPage.h
@@ -68,6 +68,12 @@ public:
                 save();
         }
 
+        void setMarkdownEnabled(bool state)
+        {
+                isMarkdownEnabled_ = state;
+                save();
+        }
+
         void setReadReceipts(bool state)
         {
                 isReadReceiptsEnabled_ = state;
@@ -96,6 +102,8 @@ public:
         bool isTrayEnabled() const { return isTrayEnabled_; }
         bool isStartInTrayEnabled() const { return isStartInTrayEnabled_; }
         bool isGroupViewEnabled() const { return isGroupViewEnabled_; }
+        bool isAvatarCirclesEnabled() const { return avatarCircles_; }
+        bool isMarkdownEnabled() const { return isMarkdownEnabled_; }
         bool isTypingNotificationsEnabled() const { return isTypingNotificationsEnabled_; }
         bool isReadReceiptsEnabled() const { return isReadReceiptsEnabled_; }
         bool hasDesktopNotifications() const { return hasDesktopNotifications_; }
@@ -116,6 +124,7 @@ private:
         bool isTrayEnabled_;
         bool isStartInTrayEnabled_;
         bool isGroupViewEnabled_;
+        bool isMarkdownEnabled_;
         bool isTypingNotificationsEnabled_;
         bool isReadReceiptsEnabled_;
         bool hasDesktopNotifications_;
@@ -168,6 +177,7 @@ private:
         Toggle *groupViewToggle_;
         Toggle *typingNotifications_;
         Toggle *readReceipts_;
+        Toggle *markdownEnabled_;
         Toggle *desktopNotifications_;
         Toggle *avatarCircles_;
         QLabel *deviceFingerprintValue_;