fix(files): the token list is fresh after the sessions end, a copy again reads Copied again, the Copied button says so

This commit is contained in:
2026-10-15 05:47:00 +02:00
parent 620f84dba4
commit a248ca6c13
10 changed files with 133 additions and 6 deletions
@@ -72,6 +72,14 @@ describe("downloadQueue · a finish", () => {
expect(takeUnannounced().map((j) => j.id)).toEqual([9]);
});
it("a download finishing during an upload is announced at once, not held for the upload", () => {
noteQueue([]);
uploadStarted();
noteQueue([job(8, "done")]);
expect(takeUnannounced().map((j) => j.id)).toEqual([8]);
uploadEnded(null);
});
it("an upload that failed announced nothing: what landed meanwhile is announced", () => {
noteQueue([]);
uploadStarted();