/// <summary> /// Forget a user /// </summary> /// <param name="username"></param> public void RemoveUserFromChat(string username) { if (chatClients.TryGetValue(username, out ChatInstance chatUiAndChannel)) { directoryMonitor.RemoveChatUi(chatUiAndChannel.Item1); chatUiAndChannel.Item1.Dispose(); chatUiAndChannel.Item2.Dispose(); chatClients.Remove(username); } }