Admittedly India is not in the same league with China, but still an important partner in BRICS. It indeed a snub. Yet we do generalize a few points out of this ridicule.
You need to blame your diplomatic team in SA for messed up agenda and lodging of your PM.
You need to acknowledge Africa is now China's exclusive sphere of influence. China does not build hospitals, convention center, provide leading communication tech, or being the largest donors to the black land, for a normal partner. We see this vividly from SA's arrangement. All african nations went to see China's Xi except only four presidents of insignificant tiny countries who flied to Washington the same day to meet Obama at his call. ( this is so interesting as I am at loss why the US placed such a funny arrangement or those diplomats in white house want to see Who's on its side?)
If the US got ridiculed in such a humiliating way, India should be just well relieved and pacified.
We are living in a changing world.