mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-24 00:37:47 +00:00
Clean
This commit is contained in:
parent
8c6b60aa08
commit
a272677fba
@ -304,12 +304,7 @@ public class PushMediaSendJob extends PushSendJob implements InjectableType {
|
||||
}
|
||||
SendMessageResult result = messageSender.sendMessage(messageId, address, UnidentifiedAccessUtil.getAccessFor(context, recipient), mediaMessage, Optional.fromNullable(syncMessage));
|
||||
if (result.getLokiAPIError() != null) {
|
||||
Throwable lokiAPIError = result.getLokiAPIError();
|
||||
if (lokiAPIError instanceof LokiAPI.Error) { // Should always be true
|
||||
throw (LokiAPI.Error) lokiAPIError;
|
||||
} else {
|
||||
return result.getSuccess().isUnidentified();
|
||||
}
|
||||
throw result.getLokiAPIError();
|
||||
} else {
|
||||
return result.getSuccess().isUnidentified();
|
||||
}
|
||||
|
@ -253,12 +253,7 @@ public class PushTextSendJob extends PushSendJob implements InjectableType {
|
||||
}
|
||||
SendMessageResult result = messageSender.sendMessage(messageId, address, unidentifiedAccess, textSecureMessage, Optional.fromNullable(syncMessage));
|
||||
if (result.getLokiAPIError() != null) {
|
||||
Throwable lokiAPIError = result.getLokiAPIError();
|
||||
if (lokiAPIError instanceof LokiAPI.Error) { // Should always be true
|
||||
throw (LokiAPI.Error) lokiAPIError;
|
||||
} else {
|
||||
return result.getSuccess().isUnidentified();
|
||||
}
|
||||
throw result.getLokiAPIError();
|
||||
} else {
|
||||
return result.getSuccess().isUnidentified();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user