mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-05-02 14:43:09 +01:00
Fix token mismatch issues when using CDSv2.
This commit is contained in:
committed by
Cody Henthorne
parent
f1bcc756d3
commit
658741be52
@@ -549,7 +549,11 @@ public class SignalServiceAccountManager {
|
||||
if (serviceResponse.getResult().isPresent()) {
|
||||
return serviceResponse.getResult().get();
|
||||
} else if (serviceResponse.getApplicationError().isPresent()) {
|
||||
throw new IOException(serviceResponse.getApplicationError().get());
|
||||
if (serviceResponse.getApplicationError().get() instanceof IOException) {
|
||||
throw (IOException) serviceResponse.getApplicationError().get();
|
||||
} else {
|
||||
throw new IOException(serviceResponse.getApplicationError().get());
|
||||
}
|
||||
} else if (serviceResponse.getExecutionError().isPresent()) {
|
||||
throw new IOException(serviceResponse.getExecutionError().get());
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user