diff --git a/Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotifierCompat.cs b/Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotifierCompat.cs index 2d357c715ec..c403ee585b9 100644 --- a/Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotifierCompat.cs +++ b/Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotifierCompat.cs @@ -143,10 +143,10 @@ private void PreprocessToast(ToastNotification notification) // For apps that don't have identity... if (!DesktopBridgeHelpers.HasIdentity()) { - // If tag is specified - if (!string.IsNullOrEmpty(notification.Tag)) + // If tag is specified and group isn't specified + if (!string.IsNullOrEmpty(notification.Tag) && string.IsNullOrEmpty(notification.Group)) { - // If group isn't specified, we have to add a group since otherwise can't remove without a group + // We have to add a group since otherwise can't remove without a group notification.Group = ToastNotificationManagerCompat.DEFAULT_GROUP; } } @@ -157,10 +157,10 @@ private void PreprocessScheduledToast(ScheduledToastNotification notification) // For apps that don't have identity... if (!DesktopBridgeHelpers.HasIdentity()) { - // If tag is specified - if (!string.IsNullOrEmpty(notification.Tag)) + // If tag is specified and group isn't specified + if (!string.IsNullOrEmpty(notification.Tag) && string.IsNullOrEmpty(notification.Group)) { - // If group isn't specified, we have to add a group since otherwise can't remove without a group + // We have to add a group since otherwise can't remove without a group notification.Group = ToastNotificationManagerCompat.DEFAULT_GROUP; } }