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) {
|
||||||
|
@ -1624,9 +1620,10 @@ public class ConversationFragment extends XmppFragment
|
||||||
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) {
|
||||||
Element reply = message.getReplyOrReaction();
|
Element reply = message.getReplyOrReaction();
|
||||||
|
|
Loading…
Reference in a new issue