Request direct chat by userId to avoid breakage with upcoming libquotient changes

This commit is contained in:
James Graham
2024-05-06 10:59:01 +01:00
committed by Tobias Fella
parent fa3fdca155
commit bae9f39719

View File

@@ -383,7 +383,7 @@ void NeoChatConnection::openOrCreateDirectChat(User *user)
return; return;
} }
} }
requestDirectChat(user); requestDirectChat(user->id());
connectSingleShot(this, &Connection::directChatAvailable, this, [=](auto room) { connectSingleShot(this, &Connection::directChatAvailable, this, [=](auto room) {
room->activateEncryption(); room->activateEncryption();
}); });