Commit a1fe7e4b authored by Erwan Croze's avatar Erwan Croze 👋🏻

Add linphone chat method resend to JNI

parent ed813724
......@@ -4575,6 +4575,12 @@ extern "C" jboolean Java_org_linphone_core_LinphoneChatMessageImpl_isSecured(JNI
return linphone_chat_message_is_secured((LinphoneChatMessage*)ptr);
}
extern "C" void Java_org_linphone_core_LinphoneChatMessageImpl_resend(JNIEnv* env
,jobject thiz
,jlong ptr) {
linphone_chat_message_resend((LinphoneChatMessage*)ptr);
}
static void message_state_changed(LinphoneChatMessage* msg, LinphoneChatMessageState state) {
JNIEnv *env = 0;
jint result = jvm->AttachCurrentThread(&env,NULL);
......
......@@ -252,4 +252,8 @@ public interface LinphoneChatMessage {
*/
boolean isSecured();
/**
* Resend the message
*/
void reSend();
}
......@@ -172,4 +172,10 @@ public class LinphoneChatMessageImpl implements LinphoneChatMessage {
public boolean isSecured() {
return isSecured(nativePtr);
}
private native void reSend(long nativePtr);
@Override
public void reSend() {
reSend(nativePtr);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment