This commit is contained in:
Niels Andriesse 2019-11-15 14:45:00 +11:00
parent 38ee50bb21
commit b4cc90e80e
2 changed files with 3 additions and 3 deletions

View File

@ -926,7 +926,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
thread.isForceHidden = YES;
[thread saveWithTransaction:transaction];
}];
LKFriendRequestMessage *message = [[LKFriendRequestMessage alloc] initOutgoingMessageWithTimestamp:NSDate.ows_millisecondTimeStamp inThread:thread messageBody:@"Accept this friend request to enable messages to be synced across devices" attachmentIds:[NSMutableArray new]
LKFriendRequestMessage *message = [[LKFriendRequestMessage alloc] initOutgoingMessageWithTimestamp:NSDate.ows_millisecondTimeStamp inThread:thread messageBody:@"Please accept to enable messages to be synced across devices" attachmentIds:[NSMutableArray new]
expiresInSeconds:0 expireStartedAt:0 isVoiceMessage:NO groupMetaMessage:TSGroupMetaMessageUnspecified quotedMessage:nil contactShare:nil linkPreview:nil];
message.skipSave = YES;
SignalRecipient *recipient = [[SignalRecipient alloc] initWithUniqueId:hexEncodedPublicKey];
@ -1575,7 +1575,7 @@ NSString *const OWSMessageSenderRateLimitedException = @"RateLimitedException";
}
}];
BOOL isPublicChatMessage = message.isGroupChatMessage;
BOOL isPublicChatMessage = message.thread.isGroupThread;
BOOL shouldSendTranscript = (AreRecipientUpdatesEnabled() || !message.hasSyncedTranscript) && !isNoteToSelf && !isPublicChatMessage;
if (!shouldSendTranscript) {

View File

@ -323,7 +323,7 @@ public class TypingIndicatorsImpl: NSObject, TypingIndicators {
return
}
// Don't send typing indicators in group or note to self threads
// Loki: Don't send typing indicators in group or note to self threads
if (thread.isGroupThread()) {
return
} else {