Add support for private messages without text

This commit is contained in:
Torsten Grote
2018-11-12 11:03:24 -02:00
parent f9987c89df
commit 88276a4d44
7 changed files with 38 additions and 12 deletions

View File

@@ -14,15 +14,21 @@ import javax.annotation.concurrent.Immutable;
@NotNullByDefault
public class PrivateMessageHeader extends ConversationMessageHeader {
private final boolean hasText;
private final List<AttachmentHeader> attachmentHeaders;
public PrivateMessageHeader(MessageId id, GroupId groupId, long timestamp,
boolean local, boolean read, boolean sent, boolean seen,
List<AttachmentHeader> attachmentHeaders) {
boolean hasText, List<AttachmentHeader> attachmentHeaders) {
super(id, groupId, timestamp, local, read, sent, seen);
this.hasText = hasText;
this.attachmentHeaders = attachmentHeaders;
}
public boolean hasText() {
return hasText;
}
public List<AttachmentHeader> getAttachmentHeaders() {
return attachmentHeaders;
}