Fix make webxdc openable without thread set

This commit is contained in:
Arne 2023-12-01 08:06:59 +01:00
parent 7515dac148
commit c9d1025f13

View file

@ -16,8 +16,8 @@ public class WebxdcUpdate {
protected final String conversationId;
protected final String messageId;
protected final Jid sender;
protected final String thread;
protected final String threadParent;
protected String thread;
protected String threadParent;
protected final String info;
protected final String document;
protected final String summary;
@ -29,8 +29,13 @@ public class WebxdcUpdate {
this.conversationId = conversation.getUuid();
this.messageId = messageId;
this.sender = sender;
if (thread != null ) {
this.thread = thread.getContent();
this.threadParent = thread.getAttribute("parent");
} else {
this.thread = "thread";
this.threadParent = "parent";
}
this.info = info;
this.document = document;
this.summary = summary;