public async void bubble_DownloadImage(object sender, ChatMessage message) { EnableDownloadButtons(false); var tempFolder = ApplicationData.Current.LocalFolder; string name = await Utils.GetImageTempFileName(); message.DownloadFile(); }
public async void bubble_DownloadImage(object sender, ChatMessage message) { EnableDownloadButtons(false); string fileName = Utils.GetFileName(); message.FileTransferFilepath = Path.Combine(ApplicationData.Current.LocalFolder.Path, fileName); message.Appdata = fileName; message.Listener.OnMsgStateChanged = MessageStateChanged; message.DownloadFile(); }