summary refs log tree commit diff
path: root/src/ui
diff options
context:
space:
mode:
authorJoe <rubberduckie3554@gmail.com>2021-07-24 18:27:59 -0400
committerJoe <rubberduckie3554@gmail.com>2021-07-24 18:27:59 -0400
commitfb3c443ce06dd516e409351cb699a322b92456e0 (patch)
treeb1f7c8de33812034ea690d8824f43336b303ba4e /src/ui
parentMerge master and fix conflicts (diff)
downloadnheko-fb3c443ce06dd516e409351cb699a322b92456e0.tar.xz
Remove additional key requests preference code
Diffstat (limited to 'src/ui')
-rw-r--r--src/ui/RoomSettings.cpp7
-rw-r--r--src/ui/RoomSettings.h2
2 files changed, 0 insertions, 9 deletions
diff --git a/src/ui/RoomSettings.cpp b/src/ui/RoomSettings.cpp
index ae5fce0c..fcba8205 100644
--- a/src/ui/RoomSettings.cpp
+++ b/src/ui/RoomSettings.cpp
@@ -292,13 +292,6 @@ RoomSettings::accessJoinRules()
 }
 
 void
-RoomSettings::changeKeyRequestsPreference(bool isOn)
-{
-        utils::setKeyRequestsPreference(roomid_, isOn);
-        emit keyRequestsChanged();
-}
-
-void
 RoomSettings::enableEncryption()
 {
         if (usesEncryption_)
diff --git a/src/ui/RoomSettings.h b/src/ui/RoomSettings.h
index 2deaa5e3..1c8b47d6 100644
--- a/src/ui/RoomSettings.h
+++ b/src/ui/RoomSettings.h
@@ -104,7 +104,6 @@ public:
         Q_INVOKABLE void openEditModal();
         Q_INVOKABLE void changeAccessRules(int index);
         Q_INVOKABLE void changeNotifications(int currentIndex);
-        Q_INVOKABLE void changeKeyRequestsPreference(bool isOn);
 
 signals:
         void loadingChanged();
@@ -112,7 +111,6 @@ signals:
         void roomTopicChanged();
         void avatarUrlChanged();
         void encryptionChanged();
-        void keyRequestsChanged();
         void notificationsChanged();
         void accessJoinRulesChanged();
         void displayError(const QString &errorMessage);