|
|
|
@ -1485,8 +1485,8 @@ NS_ASSUME_NONNULL_BEGIN
|
|
|
|
|
// friend request status is reset to TSThreadFriendRequestStatusNone. Bob now sends Alice a friend
|
|
|
|
|
// request. Alice's thread's friend request status is reset to
|
|
|
|
|
// TSThreadFriendRequestStatusRequestReceived.
|
|
|
|
|
message.isFriendRequest = YES; // It's important that this happens before the friend request status update below
|
|
|
|
|
[thread setFriendRequestStatus:TSThreadFriendRequestStatusRequestReceived withTransaction:transaction];
|
|
|
|
|
message.isFriendRequest = YES;
|
|
|
|
|
}
|
|
|
|
|
} else if (!thread.isContactFriend) {
|
|
|
|
|
// If the thread's friend request status is not TSThreadFriendRequestStatusFriends, but we're receiving a message,
|
|
|
|
|