Merge pull request #1645 from deltachat/update_device_chats-during-configure

Remove updateDeviceChats
This commit is contained in:
bjoern
2020-10-16 15:29:21 +02:00
committed by GitHub
3 changed files with 0 additions and 12 deletions
-6
View File
@@ -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*/)
-1
View File
@@ -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);
@@ -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);