Expose manual download API and distinguish storage replication in test

This commit is contained in:
evgeny committed 2026-10-18 02:19:45 +02:00
1 parent 945208ce77
commit 6c8e2763e5
2 files changed
+5 -2

No files matched your search

+3 -2
View File
@@ -166,12 +166,13 @@ static void tick(void* arg) {
if (setup(t)) { failure(t, "signed group members"); return; } t->phase++;
}
/* UTUN routes precede CHAT routes; setup once physical links are UP. */
else if (t->ticks == 20 && instance_find_conn(a, t->ids[S]) && instance_find_conn(b, t->ids[S]) && instance_find_conn(c, t->ids[S])) {
else if (t->ticks >= 20 && instance_find_conn(a, t->ids[S]) && instance_find_conn(b, t->ids[S]) && instance_find_conn(c, t->ids[S])) {
if (setup(t)) { failure(t, "signed group members"); return; } t->phase++;
}
break;
case 1:
if (live(a, t->ids[B]) && live(a, t->ids[M])) {
if (chat_setting_set(s, "storage_autoload", "1")) { failure(t, "storage autoload setting"); return; }
struct attachment_send_req* req = u_calloc(1, sizeof(*req));
if (!req) { failure(t, "send allocation"); return; }
req->inst = a; req->encrypted = 1; req->info.kind = ATTACHMENT_FILE;
@@ -187,7 +188,7 @@ static void tick(void* arg) {
if (value(b, "SELECT count(*) FROM msg_" CHANNEL " WHERE instr(CAST(data AS TEXT),'private-name.bin')>0") != 0) {
failure(t, "plaintext filename leaked into group history"); return;
}
download(t, S); t->phase++;
t->phase++;
}
break;
case 3: