mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-22 18:00:02 +01:00
Update contact hiding to spec.
This commit is contained in:
@@ -77,6 +77,7 @@ import org.thoughtcrime.securesms.mms.QuoteModel
|
||||
import org.thoughtcrime.securesms.mms.StickerSlide
|
||||
import org.thoughtcrime.securesms.notifications.v2.ConversationId
|
||||
import org.thoughtcrime.securesms.recipients.Recipient
|
||||
import org.thoughtcrime.securesms.recipients.Recipient.HiddenState
|
||||
import org.thoughtcrime.securesms.recipients.RecipientId
|
||||
import org.thoughtcrime.securesms.recipients.RecipientUtil
|
||||
import org.thoughtcrime.securesms.sms.IncomingEncryptedMessage
|
||||
@@ -169,6 +170,10 @@ object DataMessageProcessor {
|
||||
handleProfileKey(envelope.timestamp, message.profileKey.toByteArray(), senderRecipient)
|
||||
}
|
||||
|
||||
if (groupId == null && senderRecipient.hiddenState == HiddenState.HIDDEN) {
|
||||
SignalDatabase.recipients.markHidden(senderRecipient.id, clearProfileKey = false, showMessageRequest = true)
|
||||
}
|
||||
|
||||
if (metadata.sealedSender && messageId != null) {
|
||||
SignalExecutors.BOUNDED.execute { ApplicationDependencies.getJobManager().add(SendDeliveryReceiptJob(senderRecipient.id, message.timestamp, messageId)) }
|
||||
} else if (!metadata.sealedSender) {
|
||||
|
||||
Reference in New Issue
Block a user