srctree

Robin Linden parent c11046f7 1ec4ee3c
Handle ft cancelations from the other party

inlinesplit
domain/src/main/kotlin/feature/FileTransferManager.kt added: 4, removed: 1, total 3
@@ -277,6 +277,9 @@ class FileTransferManager @Inject constructor(
 
if (fileStatus == ToxFileControl.RESUME && ft.progress == FtNotStarted) {
ft.progress = FtStarted
} else if (fileStatus == ToxFileControl.CANCEL) {
Log.i(TAG, "Friend canceled ft ${pk.take(8)} $fileNo")
reject(ft)
}
}
}