Remove additional key requests preference code

This commit is contained in:
Joe 2021-07-24 18:27:59 -04:00
parent 3f567a8da7
commit fb3c443ce0
4 changed files with 0 additions and 22 deletions

View File

@ -172,16 +172,6 @@ utils::scaleFactor()
return settings.value("settings/scale_factor", -1).toFloat(); return settings.value("settings/scale_factor", -1).toFloat();
} }
void
utils::setKeyRequestsPreference(QString roomId, bool value)
{
if (roomId.isEmpty())
return;
QSettings settings;
settings.setValue("rooms/respond_to_key_requests/" + roomId, value);
}
QString QString
utils::descriptiveTime(const QDateTime &then) utils::descriptiveTime(const QDateTime &then)
{ {

View File

@ -67,9 +67,6 @@ scaleFactor();
void void
setScaleFactor(float factor); setScaleFactor(float factor);
void
setKeyRequestsPreference(QString roomId, bool value);
//! Human friendly timestamp representation. //! Human friendly timestamp representation.
QString QString
descriptiveTime(const QDateTime &then); descriptiveTime(const QDateTime &then);

View File

@ -291,13 +291,6 @@ RoomSettings::accessJoinRules()
return accessRules_; return accessRules_;
} }
void
RoomSettings::changeKeyRequestsPreference(bool isOn)
{
utils::setKeyRequestsPreference(roomid_, isOn);
emit keyRequestsChanged();
}
void void
RoomSettings::enableEncryption() RoomSettings::enableEncryption()
{ {

View File

@ -104,7 +104,6 @@ public:
Q_INVOKABLE void openEditModal(); Q_INVOKABLE void openEditModal();
Q_INVOKABLE void changeAccessRules(int index); Q_INVOKABLE void changeAccessRules(int index);
Q_INVOKABLE void changeNotifications(int currentIndex); Q_INVOKABLE void changeNotifications(int currentIndex);
Q_INVOKABLE void changeKeyRequestsPreference(bool isOn);
signals: signals:
void loadingChanged(); void loadingChanged();
@ -112,7 +111,6 @@ signals:
void roomTopicChanged(); void roomTopicChanged();
void avatarUrlChanged(); void avatarUrlChanged();
void encryptionChanged(); void encryptionChanged();
void keyRequestsChanged();
void notificationsChanged(); void notificationsChanged();
void accessJoinRulesChanged(); void accessJoinRulesChanged();
void displayError(const QString &errorMessage); void displayError(const QString &errorMessage);