Disable receipt sending if we're not friends.

pull/35/head
Mikunj 6 years ago
parent bb65c87906
commit 108452cf56

@ -173,6 +173,10 @@ NSString *const kOutgoingReadReceiptManagerCollection = @"kOutgoingReadReceiptMa
} }
TSThread *thread = [TSContactThread getOrCreateThreadWithContactId:recipientId]; TSThread *thread = [TSContactThread getOrCreateThreadWithContactId:recipientId];
// If we aren't friends with the user then don't send out any receipts
if (thread.friendRequestStatus != LKThreadFriendRequestStatusFriends) { continue; }
OWSReceiptsForSenderMessage *message; OWSReceiptsForSenderMessage *message;
NSString *receiptName; NSString *receiptName;
switch (receiptType) { switch (receiptType) {

Loading…
Cancel
Save