func getConversation()

in HuggingChat-Mac/Models/MenuViewModel.swift [116:123]


    func getConversation(withServerId id: String) -> Conversation? {
        for (_, conversations) in conversations {
            if let conversation = conversations.first(where: { $0.serverId == id }) {
                return conversation
            }
        }
        return nil
    }