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).
32 lines
1.1 KiB
C#
32 lines
1.1 KiB
C#
using Govor.Domain.Models.Messages;
|
|
|
|
namespace Govor.Domain.Models;
|
|
|
|
public class ChatGroup
|
|
{
|
|
public Guid Id { get; set; }
|
|
public string Name { get; set; }
|
|
public string Description { get; set; }
|
|
public Guid ImageId { get; set; }
|
|
public bool IsChannel { get; set; }
|
|
public Govor.Domain.Models.Reactions.ChannelReactionMode ReactionMode { get; set; }
|
|
public long ReactionPolicyVersion { get; set; }
|
|
public bool IsPrivate { get; set; }
|
|
public List<GroupAdmins> Admins { get; set; } = new();
|
|
public List<GroupMembership> Members { get; set; } = new();
|
|
public List<GroupInvitation> InviteCodes { get; set; } = new();
|
|
public List<Message> Messages { get; set; } = new();
|
|
|
|
public override bool Equals(object? obj)
|
|
{
|
|
ChatGroup chatGroup = obj as ChatGroup;
|
|
|
|
return Id == chatGroup.Id &&
|
|
Name == chatGroup.Name &&
|
|
Description == chatGroup.Description &&
|
|
ImageId == chatGroup.ImageId &&
|
|
IsChannel == chatGroup.IsChannel &&
|
|
IsPrivate == chatGroup.IsPrivate;
|
|
}
|
|
}
|