Commit d0cfaf64 authored by Yusuke Iwaki's avatar Yusuke Iwaki

fix issue on sendFileMessage

parent faca14aa
......@@ -33,12 +33,12 @@ public class FileUploadingHelper extends MethodCallHelper {
.onSuccessTask(CONVERT_TO_JSON_OBJECT);
}
public Task<JSONObject> sendFileMessage(String roomId, String storageType, JSONObject fileObj) {
public Task<Void> sendFileMessage(String roomId, String storageType, JSONObject fileObj) {
return call("sendFileMessage", TIMEOUT_MS, () -> new JSONArray()
.put(roomId)
.put(TextUtils.isEmpty(storageType) ? JSONObject.NULL : storageType)
.put(fileObj))
.onSuccessTask(CONVERT_TO_JSON_OBJECT);
.onSuccessTask(task -> Task.forResult(null));
}
public Task<JSONObject> ufsCreate(String filename, long filesize, String mimeType, String store,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment