if the file being received already exists locally, it will be renamed

This commit is contained in:
2026-02-07 19:39:14 +08:00
parent e76ada9b4b
commit e76bcd709c
13 changed files with 114 additions and 90 deletions

View File

@@ -21,9 +21,6 @@ export enum Language {
export class WindowState {
"Width": number;
"Height": number;
"X": number;
"Y": number;
"Maximised": boolean;
/** Creates a new WindowState instance. */
constructor($$source: Partial<WindowState> = {}) {
@@ -33,15 +30,6 @@ export class WindowState {
if (!("Height" in $$source)) {
this["Height"] = 0;
}
if (!("X" in $$source)) {
this["X"] = 0;
}
if (!("Y" in $$source)) {
this["Y"] = 0;
}
if (!("Maximised" in $$source)) {
this["Maximised"] = false;
}
Object.assign(this, $$source);
}

View File

@@ -83,6 +83,7 @@ export class Transfer {
"sender": discovery$0.Peer;
/**
* FileName 如果 ContentType 为 file文件名如果 ContentType 为 folder文件夹名如果 ContentType 为 text
* 文件名
*/
"file_name": string;

View File

@@ -61,8 +61,8 @@ export function ResolvePendingRequest(id: string, accept: boolean, savePath: str
return $Call.ByID(207902967, id, accept, savePath);
}
export function SaveHistory(): $CancellablePromise<void> {
return $Call.ByID(713135400);
export function SaveHistory(transfers: ($models.Transfer | null)[]): $CancellablePromise<void> {
return $Call.ByID(713135400, transfers);
}
export function SendFile(target: discovery$0.Peer | null, targetIP: string, filePath: string): $CancellablePromise<void> {