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();
}
void
utils::setKeyRequestsPreference(QString roomId, bool value)
{
if (roomId.isEmpty())
return;
QSettings settings;
settings.setValue("rooms/respond_to_key_requests/" + roomId, value);
}
QString
utils::descriptiveTime(const QDateTime &then)
{

View file

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

View file

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

View file

@ -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);