Fix linting

pull/76/head
redsky17 6 years ago
parent 2d9f98a0b7
commit 4cb27f34f2
No known key found for this signature in database
GPG Key ID: E8A1D78EF044B0CB
  1. 6
      src/UserSettingsPage.cpp

@ -499,8 +499,8 @@ UserSettingsPage::importSessionKeys()
}
try {
auto sessions = mtx::crypto::decrypt_exported_sessions(
payload, password.toStdString());
auto sessions =
mtx::crypto::decrypt_exported_sessions(payload, password.toStdString());
cache::client()->importSessionKeys(std::move(sessions));
} catch (const mtx::crypto::sodium_exception &e) {
QMessageBox::warning(this, tr("Error"), e.what());
@ -545,7 +545,7 @@ UserSettingsPage::exportSessionKeys()
auto encrypted_blob = mtx::crypto::encrypt_exported_sessions(
cache::client()->exportSessionKeys(), password.toStdString());
QString b64 = QString::fromStdString( mtx::crypto::bin2base64(encrypted_blob));
QString b64 = QString::fromStdString(mtx::crypto::bin2base64(encrypted_blob));
QString prefix("-----BEGIN MEGOLM SESSION DATA-----");
QString suffix("-----END MEGOLM SESSION DATA-----");

Loading…
Cancel
Save