fallback on message uuid to fix missed reply id for single mode conversations

This commit is contained in:
kosyak 2024-09-06 01:02:52 +02:00
parent 95ee8459b8
commit c64e0925f4

View file

@ -352,7 +352,10 @@ public class Message extends AbstractEntity implements AvatarService.Avatarable
}
public String replyId() {
return conversation.getMode() == Conversation.MODE_MULTI || getRemoteMsgId() == null ? getServerMsgId() : getRemoteMsgId();
if (conversation.getMode() == Conversation.MODE_MULTI) return getServerMsgId();
final String remote = getRemoteMsgId();
if (remote == null && getStatus() > STATUS_RECEIVED) return getUuid();
return remote;
}
public Message reply() {