The prime minister exchanged messages with someone pretending to be the president’s chief of staff, Susie Wiles.