Use new libquotient functionality to encrypt direct chats by default

Needs https://github.com/quotient-im/libQuotient/pull/730
This commit is contained in:
James Graham
2024-05-11 10:49:22 +00:00
committed by Tobias Fella
parent 35ab4e6e09
commit 408f0a12e2
2 changed files with 3 additions and 9 deletions

View File

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