Skip to content

Commit

Permalink
update core
Browse files Browse the repository at this point in the history
  • Loading branch information
adbenitez committed Jan 6, 2025
1 parent 009593f commit f8b9d2b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 16 deletions.
6 changes: 0 additions & 6 deletions jni/dc_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -1364,12 +1364,6 @@ JNIEXPORT jint Java_com_b44t_messenger_DcMsg_getId(JNIEnv *env, jobject obj)
return dc_msg_get_id(get_dc_msg(env, obj));
}


JNIEXPORT jboolean Java_com_b44t_messenger_DcMsg_isOutgoing(JNIEnv *env, jobject obj)
{
return (jboolean)(dc_msg_is_outgoing(get_dc_msg(env, obj))!=0);
}

JNIEXPORT jint Java_com_b44t_messenger_DcMsg_getSenderColor(JNIEnv *env, jobject obj)
{
return dc_msg_get_sender_color(get_dc_msg(env, obj));
Expand Down
2 changes: 1 addition & 1 deletion jni/deltachat-core-rust
Submodule deltachat-core-rust updated 54 files
+68 −0 CHANGELOG.md
+189 −136 Cargo.lock
+11 −11 Cargo.toml
+0 −80 contrib/proxy.py
+1 −1 deltachat-ffi/Cargo.toml
+2 −3 deltachat-ffi/deltachat.h
+0 −44 deltachat-ffi/src/lib.rs
+2 −2 deltachat-jsonrpc/Cargo.toml
+3 −0 deltachat-jsonrpc/src/api/types/events.rs
+3 −0 deltachat-jsonrpc/src/api/types/message.rs
+1 −1 deltachat-jsonrpc/typescript/package.json
+1 −1 deltachat-repl/Cargo.toml
+1 −1 deltachat-rpc-client/pyproject.toml
+1 −0 deltachat-rpc-client/src/deltachat_rpc_client/const.py
+8 −5 deltachat-rpc-client/tests/test_securejoin.py
+1 −1 deltachat-rpc-server/Cargo.toml
+1 −1 deltachat-rpc-server/npm-package/package.json
+2 −0 deny.toml
+1 −1 package.json
+1 −1 python/pyproject.toml
+8 −4 python/tests/test_1_online.py
+6 −1 python/tests/test_4_lowlevel.py
+1 −1 release-date.in
+26 −1 src/blob.rs
+58 −53 src/chat.rs
+36 −6 src/config.rs
+2 −1 src/configure.rs
+8 −11 src/contact.rs
+23 −1 src/context.rs
+6 −2 src/download.rs
+106 −22 src/e2ee.rs
+111 −16 src/ephemeral.rs
+3 −0 src/events/payload.rs
+1 −0 src/headerdef.rs
+120 −79 src/imap.rs
+3 −1 src/imap/idle.rs
+3 −0 src/imap/scan_folders.rs
+22 −8 src/imap/select_folder.rs
+23 −12 src/imex.rs
+13 −6 src/imex/transfer.rs
+4 −3 src/location.rs
+32 −12 src/message.rs
+13 −19 src/mimefactory.rs
+17 −6 src/mimeparser.rs
+26 −10 src/net/http.rs
+3 −0 src/net/proxy.rs
+2 −0 src/param.rs
+41 −73 src/receive_imf.rs
+24 −0 src/receive_imf/tests.rs
+6 −1 src/securejoin.rs
+9 −12 src/smtp.rs
+17 −0 src/sql/migrations.rs
+4 −0 src/sync.rs
+1 −0 src/webxdc.rs
5 changes: 4 additions & 1 deletion src/main/java/com/b44t/messenger/DcMsg.java
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ public JSONObject getWebxdcInfo () {
public native String getQuotedText ();
public native String getError ();
public native String getOverrideSenderName();
public native boolean isOutgoing();
public native int getSenderColor();

public String getSenderName(DcContact dcContact) {
Expand Down Expand Up @@ -210,6 +209,10 @@ public static int[] msgSetToIds(final Set<DcMsg> dcMsgs) {
return ids;
}

public boolean isOutgoing() {
return getFromId() == DcContact.DC_CONTACT_ID_SELF;
}

public String getDisplayBody() {
return getText();
}
Expand Down
12 changes: 4 additions & 8 deletions src/main/java/org/thoughtcrime/securesms/ApplicationContext.java
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,6 @@ public void onCreate() {
e.printStackTrace();
}
}
if ("deltafans@nine.testrun.org".equals(ac.getConfig("configured_addr")) && !ac.isCommunity()) {
ac.setCommunityMode(true);
}
}
if (allAccounts.length == 0) {
dcAccounts.addAccount();
Expand Down Expand Up @@ -232,11 +229,10 @@ public void onReceive(Context context, Intent intent) {
TimeUnit.MILLISECONDS)
.setConstraints(constraints)
.build();
try {
// in Android 4 this throws exception due to R8/shrinking
WorkManager.getInstance(this)
.enqueueUniquePeriodicWork("FetchWorker", ExistingPeriodicWorkPolicy.KEEP, fetchWorkRequest);
} catch (Throwable e) {}
WorkManager.getInstance(this).enqueueUniquePeriodicWork(
"FetchWorker",
ExistingPeriodicWorkPolicy.KEEP,
fetchWorkRequest);
AppCompatDelegate.setCompatVectorFromResourcesEnabled(true);

if (Prefs.isPushEnabled(this)) {
Expand Down

0 comments on commit f8b9d2b

Please sign in to comment.