Fixed the view to make private chat sort messages correctly