Merge branch 'release/5.33.0'

This commit is contained in:
Nora Trapp 2022-03-19 11:43:27 -07:00
commit bc3e22a199
2 changed files with 13 additions and 2 deletions

View File

@ -158,23 +158,34 @@ extension TSThread {
let senderAddress: SignalServiceAddress
let message: TSMessage?
let recipients: [INPerson]?
switch context {
case .outgoingMessage(let outgoingMessage):
senderAddress = localAddress
message = outgoingMessage
// For 1:1 outgoing messages, we must populate the recipient of the message,
// otherwise sharing suggestions won't be populated correctly.
if !isGroupThread {
recipients = outgoingMessage.recipientAddresses().map { inPersonForRecipient($0, transaction: transaction) }
} else {
recipients = nil
}
case .incomingMessage(let incomingMessage):
senderAddress = incomingMessage.authorAddress
message = incomingMessage
recipients = nil
case .senderAddress(let address):
senderAddress = address
message = nil
recipients = nil
}
let threadName = contactsManager.displayName(for: self, transaction: transaction)
let inSender = inPersonForRecipient(senderAddress, transaction: transaction)
let sendMessageIntent = INSendMessageIntent(
recipients: nil,
recipients: recipients,
outgoingMessageType: .outgoingMessageText,
content: nil,
speakableGroupName: isGroupThread ? INSpeakableString(spokenPhrase: threadName) : nil,

View File

@ -19,7 +19,7 @@ extension FeatureBuild {
}
}
private let build: FeatureBuild = OWSIsDebugBuild() ? .dev : .qa
private let build: FeatureBuild = OWSIsDebugBuild() ? .dev : .beta
// MARK: -