Skip to content

Commit b97139a

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

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +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());
186187
result.putString(Constant.FILE_NAME, fileContent.getFileName());
187188
break;
188189
case custom:

0 commit comments

Comments
 (0)