mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 00:29:11 +01:00
Convert donations apis to WebSocket.
This commit is contained in:
committed by
Michelle Tang
parent
2f9692a1a0
commit
ecb040ce98
@@ -105,9 +105,13 @@ class DeleteAccountRepository {
|
||||
try {
|
||||
AppDependencies.getSignalServiceAccountManager().deleteAccount();
|
||||
} catch (IOException e) {
|
||||
Log.w(TAG, "deleteAccount: failed to delete account from signal service", e);
|
||||
onDeleteAccountEvent.accept(DeleteAccountEvent.ServerDeletionFailed.INSTANCE);
|
||||
return;
|
||||
if (e instanceof NonSuccessfulResponseCodeException && ((NonSuccessfulResponseCodeException) e).code == 4401) {
|
||||
Log.i(TAG, "deleteAccount: WebSocket closed with expected status after delete account, moving forward as delete was successful");
|
||||
} else {
|
||||
Log.w(TAG, "deleteAccount: failed to delete account from signal service, bail", e);
|
||||
onDeleteAccountEvent.accept(DeleteAccountEvent.ServerDeletionFailed.INSTANCE);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
Log.i(TAG, "deleteAccount: successfully removed account from server");
|
||||
|
||||
Reference in New Issue
Block a user