try to call chatAdapter.notifyDataSetChanged() after recyclerView.setAdapter(chatAdapter);
chatAdapter.notifyDataSetChanged()
recyclerView.setAdapter(chatAdapter);