mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-26 04:58:49 +03:00
Remove additional key requests preference code
This commit is contained in:
parent
3f567a8da7
commit
fb3c443ce0
4 changed files with 0 additions and 22 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -67,9 +67,6 @@ scaleFactor();
|
|||
void
|
||||
setScaleFactor(float factor);
|
||||
|
||||
void
|
||||
setKeyRequestsPreference(QString roomId, bool value);
|
||||
|
||||
//! Human friendly timestamp representation.
|
||||
QString
|
||||
descriptiveTime(const QDateTime &then);
|
||||
|
|
|
@ -291,13 +291,6 @@ RoomSettings::accessJoinRules()
|
|||
return accessRules_;
|
||||
}
|
||||
|
||||
void
|
||||
RoomSettings::changeKeyRequestsPreference(bool isOn)
|
||||
{
|
||||
utils::setKeyRequestsPreference(roomid_, isOn);
|
||||
emit keyRequestsChanged();
|
||||
}
|
||||
|
||||
void
|
||||
RoomSettings::enableEncryption()
|
||||
{
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue