fix(tickets): fallback unread detection to created date when last action missing

This commit is contained in:
Meik
2026-03-05 19:07:02 +01:00
parent d540dc3fb2
commit b8bd85d543
2 changed files with 10 additions and 4 deletions

View File

@@ -171,16 +171,21 @@ namespace C4IT_CustomerPanel.UserControls
item.LastJournalEntryActionText = string.Empty;
}
if (ti._lastJournalEntryDate > mainWindow.lastUpdate)
var ticketUpdateDate = ti._lastJournalEntryDate > DateTime.MinValue
? ti._lastJournalEntryDate
: ti._createdDate;
if (ticketUpdateDate > mainWindow.lastUpdate)
{
unreadTickets.Add(ti._objectID);
if (!unreadTickets.Contains(ti._objectID))
unreadTickets.Add(ti._objectID);
item.IsUnread = true;
mainWindow.NewContentSignalsInfo[enumMainFunctions.Incident] =
Properties.Resources.NewTicketInfoMessage;
if (ti._lastJournalEntryDate > newLastUpdate)
newLastUpdate = ti._lastJournalEntryDate;
if (ticketUpdateDate > newLastUpdate)
newLastUpdate = ticketUpdateDate;
}
else
{