diff --git a/src/ChatPage.cpp b/src/ChatPage.cpp index ea8b159b..b7cb999f 100644 --- a/src/ChatPage.cpp +++ b/src/ChatPage.cpp @@ -978,6 +978,12 @@ ChatPage::tryInitialSync() nhlog::crypto()->critical("failed to upload one time keys: {} {}", err->matrix_error.error, status_code); + if (status_code == 404) { + nhlog::net()->warn( + "skipping key uploading. server doesn't provide /keys/upload"); + return startInitialSync(); + } + // TODO We should have a timeout instead of keeping hammering the server. emit tryInitialSyncCb(); return;