Set sequenceNumber when fetching messages