Fehler im BeWoPlaner mit chat, wenn das fenster geschlossen sit

This commit is contained in:
Lyndon Jetten
2020-11-11 15:08:31 +01:00
parent 7a47fc4b10
commit 0164a493f1

View File

@@ -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);
}