public static void LogMessage(ChatMessage chatMessage) { if (LastChatMessages.Count >= chatMessageQueueLength - 1) { LastChatMessages.RemoveAt(0); } LastChatMessages.Add(chatMessage); ViewerTracker.UpdateViewer(chatMessage.Username); }
public static void LogMessage(ChatMessage chatMessage) { if (LastChatMessages.Count >= chatMessageQueueLength - 1) { LastChatMessages.RemoveAt(0); } LastChatMessages.Add(chatMessage); if (ViewerController.ViewerExists(chatMessage.Username)) { ViewerTracker.UpdateViewer(ViewerController.GetViewer(chatMessage.Username)); } }