Second, it is not true that Chicago is only safe if you live in rich white enclaves. What is instead true is that two large tracts on the south and west sides of the city (Englewood and Lawndale, respectively) are currently lost to gang violence. But Chicago also has huge swaths of lower-middle-class neighborhoods that are no more dangerous than those of any other big city. A huge portion of those neighborhoods are hispanic, and there are many majority-African American neighborhoods with low crime stats as well.
It is possible that your friends who live in Chicago don't realize this, because what is also true about Chicago is that the 20-something hipster demographic lives almost exclusively in just a few neighborhoods on the north and near northwest sides.
Chicago and Los Angeles are safe if you live in a upper-middle class white neighborhood. Chicago is the most dangerous large city in the US.