Skip to content

Commit dd01a23

Browse files
committed
Add path parameter for file message
1 parent b97139a commit dd01a23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ public static WritableMap toJSObject(Message msg) {
183183
case file:
184184
result.putString(Constant.TYPE, Constant.FILE);
185185
FileContent fileContent = (FileContent) content;
186-
result.putString(Constant.PATH, voiceContent.getLocalPath());
186+
result.putString(Constant.PATH, fileContent.getLocalPath());
187187
result.putString(Constant.FILE_NAME, fileContent.getFileName());
188188
break;
189189
case custom:

0 commit comments

Comments
 (0)