File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
android/src/io/jchat/android/utils Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments