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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (oldReplyTo == message) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
SpannableStringBuilder body = message.getBodyForReplyPreview(activity.xmppConnectionService);
|
SpannableStringBuilder body = message.getBodyForReplyPreview(activity.xmppConnectionService);
|
||||||
|
|
||||||
if (message.isFileOrImage() && message.getEncryption() != Message.ENCRYPTION_PGP && message.getEncryption() != Message.ENCRYPTION_DECRYPTION_FAILED) {
|
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.contextPreviewText.setText(body);
|
||||||
binding.contextPreviewAuthor.setText(message.getAvatarName());
|
binding.contextPreviewAuthor.setText(message.getAvatarName());
|
||||||
binding.contextPreview.setVisibility(View.VISIBLE);
|
binding.contextPreview.setVisibility(View.VISIBLE);
|
||||||
|
|
||||||
|
if (oldReplyTo != message) {
|
||||||
showKeyboard(binding.textinput);
|
showKeyboard(binding.textinput);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void scrollToReply(Message message) {
|
private void scrollToReply(Message message) {
|
||||||
|
|
Loading…
Reference in a new issue