fix broken replies on conversation reopen
This commit is contained in:
parent
9f3fe75342
commit
a124b7e790
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue