Skip to content

Commit

Permalink
TODO--
Browse files Browse the repository at this point in the history
  • Loading branch information
Tobias Fella committed Dec 30, 2024
1 parent 8536018 commit 0d30215
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Quotient/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1988,8 +1988,7 @@ QFuture<void> Connection::shareRoomKey(Room* room)
for (const auto& request : requests) {
auto id = request.txn_id();

//TODO type from event
callApi<SendToDeviceJob>(u"m.room.encrypted"_s, stringFromRust(id), fromJson<QHash<UserId, QHash<QString, QJsonObject>>>(jsonFromRust(request.messages()))).then([this, id](const auto& job) {
callApi<SendToDeviceJob>(stringFromRust(request.event_type()), stringFromRust(id), fromJson<QHash<UserId, QHash<QString, QJsonObject>>>(jsonFromRust(request.messages()))).then([this, id](const auto& job) {
(*d->cryptoMachine)->mark_to_device_as_sent(bytesToRust(job->rawData()), id);
}, [=](const auto& job){});
}
Expand Down

0 comments on commit 0d30215

Please sign in to comment.