remove extra else if statement
@@ -426,7 +426,7 @@ public class MessageClientService extends MobiComKitClientService {
}
BroadcastService.sendMessageUpdateBroadcast(context, BroadcastService.INTENT_ACTIONS.UPLOAD_ATTACHMENT_FAILED.toString(), message);
return;
- } else if (!TextUtils.isEmpty(fileMetaResponse)) {
+ }
message.setFileMetas((FileMeta) GsonUtils.getObjectFromJson(fileMetaResponse, FileMeta.class));
if (handler != null) {
android.os.Message msg = handler.obtainMessage();
@@ -435,7 +435,6 @@ public class MessageClientService extends MobiComKitClientService {
msg.getData().putString("error", null);
msg.sendToTarget();
}
- }
} catch (Exception ex) {
Utils.printLog(context, TAG, "Error uploading file to server: " + filePath);
if (handler != null) {
