Complex sentence: In April 1961 Mali joined this union, so the flag then had three stars.
Split into simpler sentences: In April 1961 Mali joined the Union. So when Mali joined the Union the flag had three stars.