summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChatPage.cpp6
1 files changed, 6 insertions, 0 deletions
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;