Taipei 's participation in diplomatic affairs has been a controversial issue since 1949 , when Taiwan and China split at the end of a civil war .