summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-30 20:37:24 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-08-30 20:37:24 +0300
commitb10e1bafc8d7da4484ad0a213734cf6e921ed1f9 (patch)
tree0f266e8a2e645bbf8e1a96d098cdd2a666a97684 /src
parentOnly call /sync when retrying initial sync (#422) (diff)
downloadnheko-b10e1bafc8d7da4484ad0a213734cf6e921ed1f9.tar.xz
Add temp fix to work with servers that don't support e2ee endpoints
fixes #371
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;