diff --git a/src/Services/MessagingService.cs b/src/Services/MessagingService.cs index fafb220..654bc17 100644 --- a/src/Services/MessagingService.cs +++ b/src/Services/MessagingService.cs @@ -269,7 +269,7 @@ public class MessagingService Viking? msgAuthor = ctx.Vikings.FirstOrDefault(e => e.Id == message.VikingId) ?? new Viking(); if(message.IsDeleted && !showDeletedMessages) { ctx.Messages.Remove(message); continue; } - if(DateTime.Compare(now, message.CreatedAt.AddMinutes(30)) > 0 && !showOldMessages) { message.IsNew = false; continue; } // sometimes clients won't set IsNew flag when updating messages, so do not add messages more than 30 minutes old to response + if(DateTime.Compare(now, message.CreatedAt.AddMinutes(5)) > 0 && !showOldMessages) { message.IsNew = false; continue; } // sometimes clients won't set IsNew flag when updating messages, so do not add messages more than 30 minutes old to response if(!message.IsNew && !showOldMessages) continue; MessageInfo messageInfo = new MessageInfo