Skip to content

Commit

Permalink
Try macing macos happy
Browse files Browse the repository at this point in the history
  • Loading branch information
TobiasFella committed Sep 2, 2024
1 parent 590a118 commit bf7fb66
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Quotient/e2ee/qolmaccount.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,11 @@ std::pair<QOlmSession, QString> QOlmAccount::createInboundSession(
const QByteArray& theirIdentityKey, const QOlmMessage& preKeyMessage)
{
rust::Str theirIdentityKeyRS(theirIdentityKey.data(), theirIdentityKey.length());
olm::OlmMessageParts parts(preKeyMessage.type(), ::rust::String(preKeyMessage.data(), preKeyMessage.length()));
olm::OlmMessageParts parts {
.message_type = preKeyMessage.type(),
.ciphertext = rust::String(preKeyMessage.data(), preKeyMessage.length()),
};

auto theirIdentityKeyResult = types::curve25519_public_key_from_base64(theirIdentityKeyRS);
//TODO theirIdentityKeyResult error handling
qWarning() << "Creating inbound session";
Expand Down

0 comments on commit bf7fb66

Please sign in to comment.