Ejemplo n.º 1
0
    public async void Reload()
    {
        scrollRect.ClearItemData();

        LCIMClient            client = LCManager.Instance.IMClient;
        LCIMConversationQuery query  = client.GetQuery()
                                       .WhereEqualTo("m", client.Id)
                                       .WhereEqualTo("tr", false)
                                       .OrderByDescending("updatedAt");
        ReadOnlyCollection <LCIMConversation> conversations = await query.Find();

        foreach (LCIMConversation conversation in conversations)
        {
            scrollRect.AddItemData(conversation);
        }
    }