juggleim-rnsdk 0.2.2 → 0.2.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/android/build/.transforms/42b8ab7e96b9440b0e91d2ecba5f579c/transformed/classes/classes_dex/classes.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/bundleLibRuntimeToDirDebug_dex/com/juggleim/FileUtils.dex +0 -0
- package/android/build/.transforms/a3b636e0768beb7635f48b7f77613c33/transformed/bundleLibRuntimeToDirDebug/desugar_graph.bin +0 -0
- package/android/build/intermediates/compile_library_classes_jar/debug/bundleLibCompileToJarDebug/classes.jar +0 -0
- package/android/build/intermediates/javac/debug/compileDebugJavaWithJavac/classes/com/juggleim/FileUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_dir/debug/bundleLibRuntimeToDirDebug/com/juggleim/FileUtils.class +0 -0
- package/android/build/intermediates/runtime_library_classes_jar/debug/bundleLibRuntimeToJarDebug/classes.jar +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/FileUtils.class.uniqueId1 +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/{JuggleIMManager.class.uniqueId1 → JuggleIMManager.class.uniqueId2} +0 -0
- package/android/build/tmp/compileDebugJavaWithJavac/previous-compilation-data.bin +0 -0
- package/android/src/main/java/com/juggleim/FileUtils.java +4 -1
- package/package.json +1 -1
- package/src/index.js +6 -4
- package/android/build/tmp/compileDebugJavaWithJavac/compileTransaction/stash-dir/JuggleIMPackage.class.uniqueId2 +0 -0
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -18,9 +18,12 @@ import java.util.Locale;
|
|
|
18
18
|
|
|
19
19
|
public class FileUtils {
|
|
20
20
|
public static String convertContentUriToFile(Context context, String contentUri) {
|
|
21
|
+
if (contentUri.startsWith("file://")) {
|
|
22
|
+
return contentUri.substring(7);
|
|
23
|
+
}
|
|
21
24
|
if (!contentUri.startsWith("content://")) {
|
|
22
25
|
return contentUri;
|
|
23
|
-
}
|
|
26
|
+
}
|
|
24
27
|
InputStream inputStream = null;
|
|
25
28
|
OutputStream outputStream = null;
|
|
26
29
|
File tempFile = null;
|
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -165,9 +165,10 @@ class JuggleIM {
|
|
|
165
165
|
if (listener.onMessageRecall) {
|
|
166
166
|
const subscription = juggleIMEmitter.addListener(
|
|
167
167
|
"MessageRecalled",
|
|
168
|
-
(event) => {
|
|
168
|
+
async (event) => {
|
|
169
169
|
if (Platform.OS === "android" && event.key !== key) return;
|
|
170
|
-
|
|
170
|
+
const message = await this.buildMessageInfo(event.message);
|
|
171
|
+
listener.onMessageRecall(message);
|
|
171
172
|
}
|
|
172
173
|
);
|
|
173
174
|
subscriptions.push(subscription);
|
|
@@ -177,9 +178,10 @@ class JuggleIM {
|
|
|
177
178
|
if (listener.onMessageUpdate) {
|
|
178
179
|
const subscription = juggleIMEmitter.addListener(
|
|
179
180
|
"MessageUpdated",
|
|
180
|
-
(event) => {
|
|
181
|
+
async (event) => {
|
|
181
182
|
if (Platform.OS === "android" && event.key !== key) return;
|
|
182
|
-
|
|
183
|
+
const message = await this.buildMessageInfo(event.message);
|
|
184
|
+
listener.onMessageUpdate(message);
|
|
183
185
|
}
|
|
184
186
|
);
|
|
185
187
|
subscriptions.push(subscription);
|