private void LoadLocalChats()
        {
            Chats = ChatConversationRepository.GetAllChat().ToList();

            if (Chats.Count > 0)
            {
                tblChatList.TableFooterView = new UIView();

                chatsource = new ChatListViewControllerSource(Chats, this);

                tblChatList.Source    = chatsource;
                tblChatList.RowHeight = 60;
                tblChatList.ReloadData();
            }
        }
Example #2
0
 private void LoadLocalChats()
 {
     try
     {
         Chats = ChatConversationRepository.GetAllChat();
         if (Chats.Count > 0)
         {
             _adapter = new ChatListAdapter(this.Context, Chats);
             _adapter.PrivateChatItemClick += _adapter_ItemClick;
             _adapter.GroupChatItemClick   += _adapter_GroupChatItemClick;
             mRecyclerView.SetAdapter(_adapter);
             _adapter.NotifyDataSetChanged();
         }
     }
     catch (Exception ex)
     { Crashes.TrackError(ex); }
 }