fix broken replies on conversation reopen

This commit is contained in:
kosyak 2024-08-06 20:12:05 +02:00
parent 9f3fe75342
commit a124b7e790

View file

@ -1587,10 +1587,6 @@ public class ConversationFragment extends XmppFragment
return;
}
if (oldReplyTo == message) {
return;
}
SpannableStringBuilder body = message.getBodyForReplyPreview(activity.xmppConnectionService);
if (message.isFileOrImage() && message.getEncryption() != Message.ENCRYPTION_PGP && message.getEncryption() != Message.ENCRYPTION_DECRYPTION_FAILED) {
@ -1623,9 +1619,10 @@ public class ConversationFragment extends XmppFragment
binding.contextPreviewText.setText(body);
binding.contextPreviewAuthor.setText(message.getAvatarName());
binding.contextPreview.setVisibility(View.VISIBLE);
showKeyboard(binding.textinput);
if (oldReplyTo != message) {
showKeyboard(binding.textinput);
}
}
private void scrollToReply(Message message) {