Skip to content

Commit

Permalink
Increase message history in lobby page
Browse files Browse the repository at this point in the history
  • Loading branch information
matte-ek committed Jul 5, 2023
1 parent e14d795 commit d26635a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion BanchoMultiplayerBot.Host.Web/Pages/Lobby.razor
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@

private void AddChatMessage(IPrivateIrcMessage message)
{
if (_chatMessages.Count >= 256)
if (_chatMessages.Count >= 600)
_chatMessages.RemoveAt(_chatMessages.Count - 1);

var messageColor = Color.Default;
Expand Down
2 changes: 1 addition & 1 deletion BanchoMultiplayerBot/Lobby.cs
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private void ClientOnPrivateMessageSent(IPrivateIrcMessage e)

private void AddMessageToHistory(IPrivateIrcMessage message)
{
if (RecentMessages.Count >= 300)
if (RecentMessages.Count >= 600)
RecentMessages.RemoveAt(0);

RecentMessages.Add(message);
Expand Down

0 comments on commit d26635a

Please sign in to comment.