From 349247e7f3a4556895c18e3e1484a3bb8d48dddf Mon Sep 17 00:00:00 2001 From: andrew Date: Thu, 14 Sep 2023 19:21:39 +0930 Subject: [PATCH] Hide disappearing header for note-to-self --- .../securesms/conversation/v2/ConversationActivityV2.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt index 9ed9deec25..00d2628286 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt +++ b/app/src/main/java/org/thoughtcrime/securesms/conversation/v2/ConversationActivityV2.kt @@ -697,7 +697,7 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe } private fun setUpOutdatedClientBanner() { - val recipient = viewModel.recipient ?: return + val recipient = viewModel.recipient?.takeIf { !it.isLocalNumber } ?: return if (ExpirationConfiguration.isNewConfigEnabled && recipient.isContactRecipient && recipient.disappearingState == DisappearingState.LEGACY && viewModel.expirationConfiguration?.isEnabled == true