Skip to content

Commit f8135ce

Browse files
committed
Include scheduled toast in the fix
1 parent 93e0f34 commit f8135ce

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Microsoft.Toolkit.Uwp.Notifications/Toasts/Compat/ToastNotifierCompat.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,10 @@ private void PreprocessScheduledToast(ScheduledToastNotification notification)
157157
// For apps that don't have identity...
158158
if (!DesktopBridgeHelpers.HasIdentity())
159159
{
160-
// If tag is specified
161-
if (!string.IsNullOrEmpty(notification.Tag))
160+
// If tag is specified and group isn't specified
161+
if (!string.IsNullOrEmpty(notification.Tag) && string.IsNullOrEmpty(notification.Group))
162162
{
163-
// If group isn't specified, we have to add a group since otherwise can't remove without a group
163+
// We have to add a group since otherwise can't remove without a group
164164
notification.Group = ToastNotificationManagerCompat.DEFAULT_GROUP;
165165
}
166166
}

0 commit comments

Comments
 (0)