using Noctalk.Shared.Chat.Configuration;

namespace Noctalk_client.Client.Conversations;

public sealed class Conversation_list_item
{
    public Conversation_config Conversation_config { get; set; } = new();

    public string Config_path { get; set; } = string.Empty;

    public override string ToString()
    {
        return string.IsNullOrWhiteSpace(Conversation_config.Peer__nickname)
            ? Conversation_config.conversation__guid.ToString()
            : Conversation_config.Peer__nickname;
    }
}
