Use new libquotient functionality to encrypt direct chats by default
Needs https://github.com/quotient-im/libQuotient/pull/730
This commit is contained in:
committed by
Tobias Fella
parent
6babc1a479
commit
47a5952c2a
@@ -13,6 +13,7 @@
|
|||||||
#include <QQuickStyle>
|
#include <QQuickStyle>
|
||||||
#include <QQuickWindow>
|
#include <QQuickWindow>
|
||||||
#include <QtQml/QQmlExtensionPlugin>
|
#include <QtQml/QQmlExtensionPlugin>
|
||||||
|
#include <Quotient/connection.h>
|
||||||
|
|
||||||
#ifdef Q_OS_ANDROID
|
#ifdef Q_OS_ANDROID
|
||||||
#include <QGuiApplication>
|
#include <QGuiApplication>
|
||||||
@@ -174,6 +175,7 @@ int main(int argc, char *argv[])
|
|||||||
initLogging();
|
initLogging();
|
||||||
|
|
||||||
Connection::setEncryptionDefault(true);
|
Connection::setEncryptionDefault(true);
|
||||||
|
Connection::setDirectChatEncryptionDefault(true);
|
||||||
|
|
||||||
#ifdef NEOCHAT_FLATPAK
|
#ifdef NEOCHAT_FLATPAK
|
||||||
// Copy over the included FontConfig configuration to the
|
// Copy over the included FontConfig configuration to the
|
||||||
|
|||||||
@@ -384,9 +384,6 @@ void NeoChatConnection::openOrCreateDirectChat(User *user)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
requestDirectChat(user->id());
|
requestDirectChat(user->id());
|
||||||
connectSingleShot(this, &Connection::directChatAvailable, this, [=](auto room) {
|
|
||||||
room->activateEncryption();
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
qsizetype NeoChatConnection::directChatNotifications() const
|
qsizetype NeoChatConnection::directChatNotifications() const
|
||||||
|
|||||||
Reference in New Issue
Block a user