mirror of
https://github.com/C9Glax/tranga.git
synced 2025-01-12 11:27:32 +01:00
Fix notification batching:
Do not resend old notifications.
This commit is contained in:
parent
6d03cc5f8d
commit
981eb0fd9f
@ -35,6 +35,7 @@ public abstract class NotificationConnector : GlobalBase
|
|||||||
SendNotificationInternal($"{ut} ({texts.Length})", string.Join('\n', texts));
|
SendNotificationInternal($"{ut} ({texts.Length})", string.Join('\n', texts));
|
||||||
}
|
}
|
||||||
_notificationRequested = null;
|
_notificationRequested = null;
|
||||||
|
_notifications.Clear();
|
||||||
}
|
}
|
||||||
Thread.Sleep(100);
|
Thread.Sleep(100);
|
||||||
}
|
}
|
||||||
@ -61,6 +62,7 @@ public abstract class NotificationConnector : GlobalBase
|
|||||||
SendNotificationInternal(ut, string.Join('\n', texts));
|
SendNotificationInternal(ut, string.Join('\n', texts));
|
||||||
}
|
}
|
||||||
_notificationRequested = null;
|
_notificationRequested = null;
|
||||||
|
_notifications.Clear();
|
||||||
}
|
}
|
||||||
else if(_notificationRequested is not null)
|
else if(_notificationRequested is not null)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user