mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-16 20:56:03 +00:00
29cc51ee0c
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).
35 lines
1010 B
C#
35 lines
1010 B
C#
namespace Govor.Domain.Models.Reactions;
|
|
|
|
public enum ReactionKind { Emoji, Image, Gif }
|
|
public enum ChannelReactionMode { All, None, Selected }
|
|
|
|
public class ReactionItem
|
|
{
|
|
public Guid Id { get; set; }
|
|
public Guid PackId { get; set; }
|
|
public ReactionPack Pack { get; set; } = null!;
|
|
public string Code { get; set; } = string.Empty;
|
|
public string Name { get; set; } = string.Empty;
|
|
public ReactionKind Kind { get; set; }
|
|
public string? Emoji { get; set; }
|
|
public Guid? MediaFileId { get; set; }
|
|
public int Width { get; set; }
|
|
public int Height { get; set; }
|
|
public int SizeBytes { get; set; }
|
|
public int DurationMilliseconds { get; set; }
|
|
public bool IsEnabled { get; set; } = true;
|
|
public DateTime CreatedAt { get; set; }
|
|
}
|
|
|
|
public class UserReactionPack
|
|
{
|
|
public Guid UserId { get; set; }
|
|
public Guid PackId { get; set; }
|
|
}
|
|
|
|
public class ChannelAllowedReaction
|
|
{
|
|
public Guid GroupId { get; set; }
|
|
public Guid ReactionId { get; set; }
|
|
}
|