mirror of
https://github.com/Stone-Red-Code/EchoHub.git
synced 2026-09-06 07:46:19 +02:00
- Added AvatarPath to ProfileEditResult for user profile updates. - Updated ProfileEditDialog to include avatar selection with a browse button. - Increased dialog height to accommodate new avatar input fields. - Implemented avatar file path handling in the profile edit dialog. feat: introduce moderation features and user roles - Added ServerRole enum to define user roles (Member, Mod, Admin, Owner). - Extended User model to include role, mute, and ban status. - Created ModerationController for user role assignment, kicking, banning, and muting. - Implemented methods in IChatBroadcaster and SignalRBroadcaster for user moderation actions. - Updated database schema with new columns for user roles and moderation states. fix: ensure muted users cannot send messages - Added mute status checks in ChatService to prevent message sending for muted users. - Updated user presence and status handling to reflect role changes and moderation actions. chore: update constants for ASCII art rendering - Introduced AsciiArtHeightHalfBlock constant for improved ASCII art rendering.
15 lines
537 B
C#
15 lines
537 B
C#
namespace EchoHub.Core.Constants;
|
|
|
|
public static class HubConstants
|
|
{
|
|
public const string ChatHubPath = "/hubs/chat";
|
|
public const string DefaultChannel = "general";
|
|
public const int DefaultHistoryCount = 50;
|
|
public const int MaxMessageLength = 2000;
|
|
public const int MaxFileSizeBytes = 10 * 1024 * 1024; // 10 MB
|
|
public const int MaxAvatarSizeBytes = 2 * 1024 * 1024; // 2 MB
|
|
public const int AsciiArtWidth = 80;
|
|
public const int AsciiArtHeight = 40;
|
|
public const int AsciiArtHeightHalfBlock = 80;
|
|
}
|