Apple's messaging app logs phone numbers typed by users, The Intercept said.