diff --git a/Chat.BackgroundTasks/SmsBackgroundTask.cs b/Chat.BackgroundTasks/SmsBackgroundTask.cs index eafe68f..bb1d917 100644 --- a/Chat.BackgroundTasks/SmsBackgroundTask.cs +++ b/Chat.BackgroundTasks/SmsBackgroundTask.cs @@ -4,6 +4,7 @@ using Windows.UI.Notifications; using System.Threading.Tasks; using Chat.Common; +using System; namespace Chat.BackgroundTasks { @@ -21,7 +22,7 @@ private async Task DisplayToast(IBackgroundTaskInstance taskInstance) SmsMessageReceivedTriggerDetails smsDetails = taskInstance.TriggerDetails as SmsMessageReceivedTriggerDetails; SmsTextMessage2 smsTextMessage; - string deviceid = ""; + string deviceid = ""; if (smsDetails.MessageType == SmsMessageType.Text) { @@ -78,7 +79,11 @@ private async Task DisplayToast(IBackgroundTaskInstance taskInstance) } } }, - Launch = "action=openThread" + "&from=" + smsTextMessage.From + "&deviceid=" + deviceid + Launch = "action=openThread" + "&from=" + smsTextMessage.From + "&deviceid=" + deviceid, + Audio = new ToastAudio() + { + Src = new Uri("ms-winsoundevent:Notification.SMS") + } }; var toastNotif = new ToastNotification(toastContent.GetXml()); diff --git a/Chat.Common/SmsUtils.cs b/Chat.Common/SmsUtils.cs index 39e1763..3c466d2 100644 --- a/Chat.Common/SmsUtils.cs +++ b/Chat.Common/SmsUtils.cs @@ -48,8 +48,6 @@ public async static Task SendTextMessageAsync(SmsDevice2 device, string[] msg.Body = textmessage; msg.From = number; - msg.IsRead = true; - msg.IsSeen = true; msg.LocalTimestamp = offset; msg.NetworkTimestamp = offset; diff --git a/Controls/ChatMenuItemControl.xaml b/Controls/ChatMenuItemControl.xaml index 92981db..aa5fa14 100644 --- a/Controls/ChatMenuItemControl.xaml +++ b/Controls/ChatMenuItemControl.xaml @@ -154,10 +154,10 @@ + Height="24" + Width="24" + VerticalAlignment="Center" + Margin="-6,0,12,0"/> - - - - - + + - - + + + + + + + + + diff --git a/Controls/ChatMessageViewControl.xaml.cs b/Controls/ChatMessageViewControl.xaml.cs index 5f34cbf..1063040 100644 --- a/Controls/ChatMessageViewControl.xaml.cs +++ b/Controls/ChatMessageViewControl.xaml.cs @@ -26,7 +26,10 @@ public ChatMessageViewControl(ChatMessage message) this.InitializeComponent(); this.message = message; if (!message.IsIncoming) + { ChatBubble.HorizontalAlignment = HorizontalAlignment.Right; + BgColor.Opacity = 0.75; + } } } } diff --git a/Package.appxmanifest b/Package.appxmanifest index 12e63e6..94e01b2 100644 --- a/Package.appxmanifest +++ b/Package.appxmanifest @@ -10,7 +10,7 @@ + Version="0.0.39.0" /> diff --git a/Pages/ComposePage.xaml b/Pages/ComposePage.xaml index a207f04..f74ba37 100644 --- a/Pages/ComposePage.xaml +++ b/Pages/ComposePage.xaml @@ -179,6 +179,7 @@ @@ -288,16 +290,18 @@