|
|
@ -1574,7 +1574,7 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
// TODO: We'll need to fix this up if we ever start using Sync messages
|
|
|
|
// TODO: We'll need to fix this up if we ever start using Sync messages
|
|
|
|
// Currently it'll use `envelope.source` but with sync messages we need to use the message sender id
|
|
|
|
// Currently it'll use `envelope.source` but with sync messages we need to use the message sender id
|
|
|
|
TSContactThread *thread = [TSContactThread getOrCreateThreadWithContactId:envelope.source transaction:transaction];
|
|
|
|
TSContactThread *thread = [TSContactThread getOrCreateThreadWithContactId:envelope.source transaction:transaction];
|
|
|
|
if (thread.isContactFriend || thread.friendRequestStatus == LKThreadFriendRequestStatusNone) return;
|
|
|
|
if (thread.isContactFriend) return;
|
|
|
|
|
|
|
|
|
|
|
|
// Become happy friends and go on great adventures
|
|
|
|
// Become happy friends and go on great adventures
|
|
|
|
[thread saveFriendRequestStatus:LKThreadFriendRequestStatusFriends withTransaction:transaction];
|
|
|
|
[thread saveFriendRequestStatus:LKThreadFriendRequestStatusFriends withTransaction:transaction];
|
|
|
|