Skip to content

Commit

Permalink
fix: intermittent issues with saving files to downloads dir
Browse files Browse the repository at this point in the history
Signed-off-by: Next Alone <[email protected]>
  • Loading branch information
NextAlone committed Oct 26, 2024
1 parent d703afa commit cc06e86
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4526,7 +4526,7 @@ SaveToDownloadReceiver. makeNotification(context,notificationId,messageObjects.s
break;
}
if (!sourceFile.exists()) {
sourceFile = FileLoader.getInstance(currentAccount.getCurrentAccount()).getPathToAttach(message.messageOwner, true);
sourceFile = FileLoader.getInstance(currentAccount.getCurrentAccount()).getPathToMessage(message.messageOwner);
FileLog.d("saving file: correcting path from " + path + " to " + (sourceFile == null ? null : sourceFile.getAbsolutePath()));
}
if (sourceFile != null && sourceFile.exists()) {
Expand Down

0 comments on commit cc06e86

Please sign in to comment.