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
35ab4e6e09
commit
408f0a12e2
@@ -13,6 +13,7 @@
|
||||
#include <QQuickStyle>
|
||||
#include <QQuickWindow>
|
||||
#include <QtQml/QQmlExtensionPlugin>
|
||||
#include <Quotient/connection.h>
|
||||
|
||||
#ifdef Q_OS_ANDROID
|
||||
#include <QGuiApplication>
|
||||
@@ -174,6 +175,7 @@ int main(int argc, char *argv[])
|
||||
initLogging();
|
||||
|
||||
Connection::setEncryptionDefault(true);
|
||||
Connection::setDirectChatEncryptionDefault(true);
|
||||
|
||||
#ifdef NEOCHAT_FLATPAK
|
||||
// Copy over the included FontConfig configuration to the
|
||||
|
||||
@@ -398,15 +398,7 @@ void NeoChatConnection::openOrCreateDirectChat(User *user)
|
||||
return;
|
||||
}
|
||||
}
|
||||
requestDirectChat(user);
|
||||
connect(
|
||||
this,
|
||||
&Connection::directChatAvailable,
|
||||
this,
|
||||
[=](auto room) {
|
||||
room->activateEncryption();
|
||||
},
|
||||
Qt::SingleShotConnection);
|
||||
requestDirectChat(user->id());
|
||||
}
|
||||
|
||||
qsizetype NeoChatConnection::directChatNotifications() const
|
||||
|
||||
Reference in New Issue
Block a user