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 485fcaca5f..4c027b8d6c 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 @@ -1123,8 +1123,8 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe val openGroup = viewModel.openGroup // Get the correct placeholder text for this type of empty conversation - val isNoteToSelf = recipient.isLocalNumber val txtCS: CharSequence = when { + // note to self recipient.isLocalNumber -> getString(R.string.noteToSelfEmpty) // If this is a community which we cannot write to @@ -1141,8 +1141,8 @@ class ConversationActivityV2 : PassphraseRequiredActionBarActivity(), InputBarDe .format() } - recipient.isGroupRecipient -> { - // If this is a group or community that we CAN send messages to + // 10n1 and groups + recipient.is1on1 || recipient.isGroupRecipient -> { Phrase.from(applicationContext, R.string.groupNoMessages) .put(GROUP_NAME_KEY, recipient.toShortString()) .format() diff --git a/app/src/main/java/org/thoughtcrime/securesms/database/model/ThreadRecord.java b/app/src/main/java/org/thoughtcrime/securesms/database/model/ThreadRecord.java index c022598d2c..019eea64ea 100644 --- a/app/src/main/java/org/thoughtcrime/securesms/database/model/ThreadRecord.java +++ b/app/src/main/java/org/thoughtcrime/securesms/database/model/ThreadRecord.java @@ -102,7 +102,11 @@ public class ThreadRecord extends DisplayRecord { @Override public CharSequence getDisplayBody(@NonNull Context context) { - if (isGroupUpdateMessage()) { + // no need to display anything if there are no messages + if(lastMessage == null){ + return ""; + } + else if (isGroupUpdateMessage()) { return context.getString(R.string.groupUpdated); } else if (isOpenGroupInvitation()) { return context.getString(R.string.communityInvitation); diff --git a/app/src/main/res/layout/activity_conversation_v2.xml b/app/src/main/res/layout/activity_conversation_v2.xml index dd62a33007..cdc325160d 100644 --- a/app/src/main/res/layout/activity_conversation_v2.xml +++ b/app/src/main/res/layout/activity_conversation_v2.xml @@ -271,14 +271,14 @@