mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-11-23 03:18: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();
|
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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue