 Jinnah 's moderate faction in the Congress was undermined by the deaths of Mehta and Gokhale in 1915 ; he was further isolated by the fact that Naoroji was in London , where he remained until his death in 1917 . Nevertheless , Jinnah worked to bring the Congress and League together . In 1916 , with Jinnah now president of the Muslim League , the two organisations signed the Lucknow Pact , setting quotas for Muslim and Hindu representation in the various provinces . Although the pact was never fully implemented , its signing ushered in a period of cooperation between the Congress and the League . 
