trivial replace of timestampForSorting -> sortId in some logging

pull/1/head
Michael Kirk 7 years ago
parent c21020d7e7
commit c2f87c738a

@ -482,10 +482,8 @@ NS_ASSUME_NONNULL_BEGIN
} }
if (existingContactOffers && !shouldHaveContactOffers) { if (existingContactOffers && !shouldHaveContactOffers) {
// MJK FIXME - use sortId OWSLogInfo(
OWSLogInfo(@"Removing contact offers: %@ (%llu)", @"Removing contact offers: %@ (%llu)", existingContactOffers.uniqueId, existingContactOffers.sortId);
existingContactOffers.uniqueId,
existingContactOffers.timestampForLegacySorting);
[existingContactOffers removeWithTransaction:transaction]; [existingContactOffers removeWithTransaction:transaction];
} else if (shouldHaveContactOffers) { } else if (shouldHaveContactOffers) {
if (existingContactOffers) { if (existingContactOffers) {
@ -493,10 +491,9 @@ NS_ASSUME_NONNULL_BEGIN
if (existingContactOffers.hasBlockOffer != shouldHaveBlockOffer if (existingContactOffers.hasBlockOffer != shouldHaveBlockOffer
|| existingContactOffers.hasAddToContactsOffer != shouldHaveAddToContactsOffer || existingContactOffers.hasAddToContactsOffer != shouldHaveAddToContactsOffer
|| existingContactOffers.hasAddToProfileWhitelistOffer != shouldHaveAddToProfileWhitelistOffer) { || existingContactOffers.hasAddToProfileWhitelistOffer != shouldHaveAddToProfileWhitelistOffer) {
// MJK FIXME - use sortId
OWSLogInfo(@"Updating stale contact offers: %@ (%llu)", OWSLogInfo(@"Updating stale contact offers: %@ (%llu)",
existingContactOffers.uniqueId, existingContactOffers.uniqueId,
existingContactOffers.timestampForLegacySorting); existingContactOffers.sortId);
[existingContactOffers updateHasBlockOffer:shouldHaveBlockOffer [existingContactOffers updateHasBlockOffer:shouldHaveBlockOffer
hasAddToContactsOffer:shouldHaveAddToContactsOffer hasAddToContactsOffer:shouldHaveAddToContactsOffer
@ -516,10 +513,7 @@ NS_ASSUME_NONNULL_BEGIN
recipientId:recipientId]; recipientId:recipientId];
[offersMessage saveWithTransaction:transaction]; [offersMessage saveWithTransaction:transaction];
// MJK FIXME - use sortId OWSLogInfo(@"Creating contact offers: %@ (%llu)", offersMessage.uniqueId, offersMessage.sortId);
OWSLogInfo(@"Creating contact offers: %@ (%llu)",
offersMessage.uniqueId,
offersMessage.timestampForLegacySorting);
} }
} }

Loading…
Cancel
Save