a16986f7a3
* Fix self-targeting Remove creation of penalty on mute expiration * Display mute penalties on profile Expire mute penalties on unmute * Resolves issues in code review Added comment in ClientController.cs Fixed order of operations in MuteManager.cs Fixed condition in MuteManager.cs * Fix self-targeting Remove creation of penalty on mute expiration * Display mute penalties on profile Expire mute penalties on unmute * Resolves issues in code review Added comment in ClientController.cs Fixed order of operations in MuteManager.cs Fixed condition in MuteManager.cs * Changed localisation value to be more generic Fix null reference warning (it should never be null) (34da216)
19 lines
344 B
C#
19 lines
344 B
C#
using System.Text.Json.Serialization;
|
|
|
|
namespace Mute;
|
|
|
|
public class MuteStateMeta
|
|
{
|
|
public string? Reason { get; set; }
|
|
public DateTime? Expiration { get; set; }
|
|
public MuteState MuteState { get; set; }
|
|
[JsonIgnore] public bool CommandExecuted { get; set; }
|
|
}
|
|
|
|
public enum MuteState
|
|
{
|
|
Muted,
|
|
Unmuting,
|
|
Unmuted
|
|
}
|