From 0164a493f186f221a2e8ed44ee7597b7cc37e4c3 Mon Sep 17 00:00:00 2001 From: Lyndon Jetten Date: Wed, 11 Nov 2020 15:08:31 +0100 Subject: [PATCH] Fehler im BeWoPlaner mit chat, wenn das fenster geschlossen sit --- ChatController/ChatMainControl.xaml.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ChatController/ChatMainControl.xaml.cs b/ChatController/ChatMainControl.xaml.cs index 66f2002..885eb92 100644 --- a/ChatController/ChatMainControl.xaml.cs +++ b/ChatController/ChatMainControl.xaml.cs @@ -755,7 +755,11 @@ namespace ChatController if(senderId != receiverId && (_IsInBackground || receiverGroupId != selectedGroupId)) { - ContainingWindow.Icon = Utils.GetImageSourceFromIcon(Resource.oC_favico_NewMessage); + if(ContainingWindow != null) + { + ContainingWindow.Icon = Utils.GetImageSourceFromIcon(Resource.oC_favico_NewMessage); + } + ShowNotification(newContact.Name, newContact.ReceivedMessage, newContact.GroupId); }