Skip to content

Commit 2285a05

Browse files
committed
replace stale ciphertexts on attachment download start
1 parent 4500948 commit 2285a05

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Signal-Windows.Lib/SignalLibHandle.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ private void TryScheduleAttachmentDownload(SignalAttachment attachment)
485485
IStorageFolder localFolder = ApplicationData.Current.LocalFolder;
486486
IStorageFile tmpDownload = Task.Run(async () =>
487487
{
488-
return await ApplicationData.Current.LocalCacheFolder.CreateFileAsync(@"Attachments\" + attachment.Id + ".cipher");
488+
return await ApplicationData.Current.LocalCacheFolder.CreateFileAsync(@"Attachments\" + attachment.Id + ".cipher", CreationCollisionOption.ReplaceExisting);
489489
}).Result;
490490
BackgroundDownloader downloader = new BackgroundDownloader();
491491
downloader.SetRequestHeader("Content-Type", "application/octet-stream");

0 commit comments

Comments
 (0)