mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-18 05:15:06 +00:00
Add reactions, reliable push & session checks
Implements message reactions and reaction packs (domain models, services, admin HTTP API, media processing via ImageSharp and limits) and adds reliable push delivery (ChatPushNotification, ChatPushDispatcher, ChatPushWorker, improved ChatNotificationService). Enhances message reading (ReadChat API, unread counts, concurrency-safe receipts) and tightens session security (access-token session validation in JWT, hub filter, SessionAuthorization). Improves SignalR behavior (session groups, reaction/channel events, hub/error mappings). Adds EF migrations, many controller fixes (Forbid handling, password API), tests (Govor.Server.Tests), docs, CI and tooling updates (Dockerfile → .NET 10, GH Actions matrix for sqlite/postgres, Govor.Server.slnx, global.json), and small infra changes (AutoMapper bump, NullPushProvider, storage/token handling).
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Govor.Domain.Models.Messages;
|
||||
|
||||
public class ChatPushNotification
|
||||
{
|
||||
public Guid MessageId { get; set; }
|
||||
public DateTime NextAttemptAt { get; set; }
|
||||
public int Attempts { get; set; }
|
||||
}
|
||||
@@ -15,6 +15,7 @@ public class Message
|
||||
public List<MessageView> MessageViews { get; set; } = new List<MessageView>();
|
||||
|
||||
public Guid? ReplyToMessageId { get; set; }
|
||||
public long ReactionsVersion { get; set; }
|
||||
|
||||
public override bool Equals(object? obj)
|
||||
{
|
||||
@@ -36,4 +37,4 @@ public enum RecipientType
|
||||
{
|
||||
User,
|
||||
Group
|
||||
}
|
||||
}
|
||||
|
||||
@@ -13,5 +13,6 @@ public class MessageReaction
|
||||
public User User { get; set; }
|
||||
|
||||
public string ReactionCode { get; set; } // "❤️", "🔥", "👍", ":custom_emoji:"
|
||||
public Guid? ReactionId { get; set; }
|
||||
public DateTime ReactedAt { get; set; } = DateTime.UtcNow;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user