Skip to content

Commit 4aad502

Browse files
KenChoiKenChoi
authored andcommitted
remove media file format
1 parent b5491d2 commit 4aad502

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

android/src/io/jchat/android/utils/ResultUtils.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,13 +177,13 @@ public static WritableMap toJSObject(Message msg) {
177177
case voice:
178178
result.putString(Constant.TYPE, Constant.VOICE);
179179
VoiceContent voiceContent = (VoiceContent) content;
180-
result.putString(Constant.PATH, voiceContent.getLocalPath() + "." + voiceContent.getFormat());
180+
result.putString(Constant.PATH, voiceContent.getLocalPath());
181181
result.putInt(Constant.DURATION, ((VoiceContent) content).getDuration());
182182
break;
183183
case file:
184184
result.putString(Constant.TYPE, Constant.FILE);
185185
FileContent fileContent = (FileContent) content;
186-
result.putString(Constant.FILE_NAME, fileContent.getFileName() + "." + fileContent.getFormat());
186+
result.putString(Constant.FILE_NAME, fileContent.getLocalPath());
187187
break;
188188
case custom:
189189
result.putString(Constant.TYPE, Constant.CUSTOM);

0 commit comments

Comments
 (0)