Fix keys not being reshared to the same devices, that already got them, if the message got lost

This commit is contained in:
Nicolas Werner 2021-04-20 19:52:23 +02:00
parent 20c1ca2aae
commit 1936749ff5
No known key found for this signature in database
GPG key ID: C8D75E610773F2D9
4 changed files with 49 additions and 24 deletions

View file

@ -334,7 +334,7 @@ Cache::exportSessionKeys()
exported.room_id = index.room_id;
exported.sender_key = index.sender_key;
exported.session_id = index.session_id;
exported.session_key = export_session(saved_session.get());
exported.session_key = export_session(saved_session.get(), -1);
keys.sessions.push_back(exported);
}