The first response is the most accurate:
"The history of social identities in Africa has decided how national identity is perceived, particularly for people from ethnic or racial groups that were marginalized during and after colonial rule."
This statement emphasizes how the legacies of colonialism, social identities, and the marginalization of specific groups have influenced the construction and perception of national identity within various African nations since 1945.