Browse Source

Make sure to init from phrase when trying a new server during restore

instant-chat
Duke 1 year ago
parent
commit
89bf5b0f7c
  1. 3
      src/mainwindow.cpp

3
src/mainwindow.cpp

@ -222,7 +222,8 @@ MainWindow::MainWindow(QWidget *parent) :
config->server = Settings::getRandomServer();
qDebug() << __func__ << ": new server is " << config->server;
// retry with the new server
char* resp = litelib_initialize_new(config->dangerous,config->server.toStdString().c_str());
char* resp = litelib_initialize_new_from_phrase(config->dangerous,config->server.toStdString().c_str(),
seed.toStdString().c_str(), birthday, number);
reply = litelib_process_response(resp);
}

Loading…
Cancel
Save