Skip to content

Commit

Permalink
Fixing profile pictures in message toasts
Browse files Browse the repository at this point in the history
  • Loading branch information
gus33000 committed Aug 4, 2019
1 parent 45f5ea8 commit 2514c58
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions Chat.Common/ContactUtils.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,12 @@ public async static Task<ContactInformation> FindContactInformationFromSmsTextMe
StorageFolder storageFolder = ApplicationData.Current.LocalFolder;

var files = await storageFolder.GetFilesAsync();

if (files.Any(x => x.Name == contact.Id + ".png"))
{
await files.First(x => x.Name == contact.Id + ".png").DeleteAsync();
}

StorageFile file = await storageFolder.CreateFileAsync(contact.Id + ".png");

using (var srcStream = await contact.SmallDisplayPicture.OpenReadAsync())
Expand Down
2 changes: 1 addition & 1 deletion Package.appxmanifest
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Identity
Name="LumiaWOA.Chat"
Publisher="CN=LumiaWOA"
Version="0.0.39.0" />
Version="0.0.40.0" />

<mp:PhoneIdentity PhoneProductId="d8719107-e9ed-450f-be3e-88003464d950" PhonePublisherId="00000000-0000-0000-0000-000000000000"/>

Expand Down

0 comments on commit 2514c58

Please sign in to comment.