|
|
|
|
@ -467,8 +467,8 @@ int utun_bridge_voice_get_compressor(void) {
|
|
|
|
|
return voice_recorder_is_compressor_enabled(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
int utun_bridge_attachment_send(const char* channel_id, const char* file_path) { |
|
|
|
|
return attachment_send(channel_id, file_path, g_db_path); |
|
|
|
|
int utun_bridge_attachment_send(const char* channel_id, const char* file_path, const char* db_path) { |
|
|
|
|
return attachment_send(channel_id, file_path, db_path); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/* ──────────────────────────────────────────────────────────────────
|
|
|
|
|
@ -993,7 +993,7 @@ JNIEXPORT jboolean JNICALL Java_com_utun_chat_data_NativeLib_nativeAttachmentSen
|
|
|
|
|
(void)thiz; |
|
|
|
|
const char* ch = (*env)->GetStringUTFChars(env, channelId, NULL); |
|
|
|
|
const char* fp = (*env)->GetStringUTFChars(env, filePath, NULL); |
|
|
|
|
int rc = utun_bridge_attachment_send(ch, fp); |
|
|
|
|
int rc = utun_bridge_attachment_send(ch, fp, g_db_path); |
|
|
|
|
if (fp) (*env)->ReleaseStringUTFChars(env, filePath, fp); |
|
|
|
|
if (ch) (*env)->ReleaseStringUTFChars(env, channelId, ch); |
|
|
|
|
return (rc == 0) ? JNI_TRUE : JNI_FALSE; |
|
|
|
|
|