Fix getAllMessagesForPhoneNumber