mirror of
https://github.com/Govor-team/Govor.git
synced 2026-11-16 20:56:03 +00:00
2e9d7e625e
Adds server-side group and channel management, private invitations, member moderation, avatar handling, and required-channel configuration. This change also introduces SignalR group profile/member notifications, updates registration to atomically join required channels, and adds EF migration and test coverage for group membership, permissions, and invitation expiry rules.
21 lines
1.0 KiB
C#
21 lines
1.0 KiB
C#
namespace Govor.API.Hubs.Infrastructure;
|
|
|
|
public static class ChatHubConstants
|
|
{
|
|
public const string ReceiveMessage = "ReceiveMessage";
|
|
public const string MessageSent = "MessageSent";
|
|
public const string MessageRemoved = "MessageRemoved";
|
|
public const string MessageEdited = "MessageEdited";
|
|
public static string MessageRead = "MessageReaded";
|
|
public const string ChatRead = "ChatRead";
|
|
public const string MessageReactionsChanged = "MessageReactionsChanged";
|
|
public const string ChannelReactionPolicyChanged = "ChannelReactionPolicyChanged";
|
|
public const string GroupProfileChanged = "GroupProfileChanged";
|
|
public const string GroupMemberChanged = "GroupMemberChanged";
|
|
|
|
public static string GetUserGroup(Guid userId) => userId.ToString();
|
|
public static string GetSessionGroup(Guid sessionId) => $"session_{sessionId}";
|
|
public static string GetChatGroup(Guid groupId) => $"group_{groupId}";
|
|
public static string GetPrivateChat(Guid groupId) => $"private_{groupId}";
|
|
}
|