diff --git a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java index 2442ad95b..421f50e31 100644 --- a/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java +++ b/src/main/java/eu/siacs/conversations/ui/ConversationFragment.java @@ -4495,7 +4495,7 @@ public class ConversationFragment extends XmppFragment final SharedPreferences pref = PreferenceManager.getDefaultSharedPreferences(activity); ViewGroup.LayoutParams params = binding.threadIdenticonLayout.getLayoutParams(); if (identiconWidth < 0) identiconWidth = params.width; - if (hasAttachments || binding.textinput.getText().toString().replaceFirst("^(\\w|[, ])+:\\s*", "").length() > 0) { + if (hasAttachments || !binding.textinput.getText().toString().isEmpty()) { binding.conversationViewPager.setCurrentItem(0); params.width = conversation.getThread() == null ? 0 : identiconWidth; binding.quickButtons.setVisibility(GONE);