Fix Next button resending the same admin logs (#16557)
This commit is contained in:
@@ -62,7 +62,6 @@ public sealed class AdminLogsEui : BaseEui
|
||||
LogsControl.SelectedPlayers.ToArray(),
|
||||
null,
|
||||
LogsControl.IncludeNonPlayerLogs,
|
||||
null,
|
||||
DateOrder.Descending);
|
||||
|
||||
SendMessage(request);
|
||||
|
||||
@@ -165,8 +165,8 @@ public sealed class AdminLogsEui : BaseEui
|
||||
|
||||
var largestId = _filter.DateOrder switch
|
||||
{
|
||||
DateOrder.Ascending => ^1,
|
||||
DateOrder.Descending => 0,
|
||||
DateOrder.Ascending => 0,
|
||||
DateOrder.Descending => ^1,
|
||||
_ => throw new ArgumentOutOfRangeException(nameof(_filter.DateOrder), _filter.DateOrder, null)
|
||||
};
|
||||
|
||||
|
||||
@@ -69,7 +69,6 @@ public static class AdminLogsEuiMsg
|
||||
Guid[]? anyPlayers,
|
||||
Guid[]? allPlayers,
|
||||
bool includeNonPlayers,
|
||||
int? lastLogId,
|
||||
DateOrder dateOrder)
|
||||
{
|
||||
RoundId = roundId;
|
||||
@@ -82,7 +81,6 @@ public static class AdminLogsEuiMsg
|
||||
AnyPlayers = anyPlayers is { Length: > 0 } ? anyPlayers : null;
|
||||
AllPlayers = allPlayers is { Length: > 0 } ? allPlayers : null;
|
||||
IncludeNonPlayers = includeNonPlayers;
|
||||
LastLogId = lastLogId;
|
||||
DateOrder = dateOrder;
|
||||
}
|
||||
|
||||
@@ -96,7 +94,6 @@ public static class AdminLogsEuiMsg
|
||||
public Guid[]? AnyPlayers { get; set; }
|
||||
public Guid[]? AllPlayers { get; set; }
|
||||
public bool IncludeNonPlayers { get; set; }
|
||||
public int? LastLogId { get; set; }
|
||||
public DateOrder DateOrder { get; set; }
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user