From 99d52f0be2e949253a55cd9da88bb4c8d7f0ace3 Mon Sep 17 00:00:00 2001 From: Hocuri Date: Fri, 16 Oct 2020 10:22:40 +0200 Subject: [PATCH] Remove updateDeviceChats (see https://github.com/deltachat/deltachat-core-rust/pull/1957) --- jni/dc_wrapper.c | 6 ------ src/com/b44t/messenger/DcContext.java | 1 - .../thoughtcrime/securesms/ConversationListActivity.java | 5 ----- 3 files changed, 12 deletions(-) diff --git a/jni/dc_wrapper.c b/jni/dc_wrapper.c index bc9f9cff8..c96af510c 100644 --- a/jni/dc_wrapper.c +++ b/jni/dc_wrapper.c @@ -575,12 +575,6 @@ JNIEXPORT jboolean Java_com_b44t_messenger_DcContext_wasDeviceMsgEverAdded(JNIEn } -JNIEXPORT void Java_com_b44t_messenger_DcContext_updateDeviceChats(JNIEnv *env, jobject obj) -{ - dc_update_device_chats(get_dc_context(env, obj)); -} - - /* DcContext - handle config */ JNIEXPORT void Java_com_b44t_messenger_DcContext_setConfig(JNIEnv *env, jobject obj, jstring key, jstring value /*may be NULL*/) diff --git a/src/com/b44t/messenger/DcContext.java b/src/com/b44t/messenger/DcContext.java index 1bf0f29dc..dc687cea8 100644 --- a/src/com/b44t/messenger/DcContext.java +++ b/src/com/b44t/messenger/DcContext.java @@ -167,7 +167,6 @@ public class DcContext { public native int sendVideochatInvitation(int chat_id); public native int addDeviceMsg (String label, DcMsg msg); public native boolean wasDeviceMsgEverAdded(String label); - public native void updateDeviceChats (); public @NonNull DcLot checkQr (String qr) { return new DcLot(checkQrCPtr(qr)); } public native String getSecurejoinQr (int chat_id); public native int joinSecurejoin (String qr); diff --git a/src/org/thoughtcrime/securesms/ConversationListActivity.java b/src/org/thoughtcrime/securesms/ConversationListActivity.java index 837a29e22..f3fd16fda 100644 --- a/src/org/thoughtcrime/securesms/ConversationListActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationListActivity.java @@ -85,11 +85,6 @@ public class ConversationListActivity extends PassphraseRequiredActionBarActivit @Override protected void onCreate(Bundle icicle, boolean ready) { - ApplicationDcContext dcContext = DcHelper.getContext(this); - - // add welcome message -// dcContext.updateDeviceChats(); - // update messages - for new messages, do not reuse or modify strings but create new ones. // it is not needed to keep all past update messages, however, when deleted, also the strings should be deleted. //DcMsg msg = new DcMsg(dcContext, DcMsg.DC_MSG_TEXT);