mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 03:09:04 +01:00
Removed subject line, which won't be used in new conversation views.
This commit is contained in:
@@ -9,9 +9,9 @@ public class GroupMessageHeader extends MessageHeader {
|
||||
private final GroupId groupId;
|
||||
|
||||
public GroupMessageHeader(MessageId id, MessageId parent, Author author,
|
||||
String contentType, String subject, long timestamp, boolean read,
|
||||
String contentType, long timestamp, boolean read,
|
||||
GroupId groupId) {
|
||||
super(id, parent, author, contentType, subject, timestamp, read);
|
||||
super(id, parent, author, contentType, timestamp, read);
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
|
||||
@@ -7,17 +7,16 @@ public abstract class MessageHeader {
|
||||
|
||||
private final MessageId id, parent;
|
||||
private final Author author;
|
||||
private final String contentType, subject;
|
||||
private final String contentType;
|
||||
private final long timestamp;
|
||||
private final boolean read;
|
||||
|
||||
protected MessageHeader(MessageId id, MessageId parent, Author author,
|
||||
String contentType, String subject, long timestamp, boolean read) {
|
||||
String contentType, long timestamp, boolean read) {
|
||||
this.id = id;
|
||||
this.parent = parent;
|
||||
this.author = author;
|
||||
this.contentType = contentType;
|
||||
this.subject = subject;
|
||||
this.timestamp = timestamp;
|
||||
this.read = read;
|
||||
}
|
||||
@@ -47,11 +46,6 @@ public abstract class MessageHeader {
|
||||
return contentType;
|
||||
}
|
||||
|
||||
/** Returns the message's subject line. */
|
||||
public String getSubject() {
|
||||
return subject;
|
||||
}
|
||||
|
||||
/** Returns the timestamp created by the message's author. */
|
||||
public long getTimestamp() {
|
||||
return timestamp;
|
||||
|
||||
@@ -10,9 +10,9 @@ public class PrivateMessageHeader extends MessageHeader {
|
||||
private final boolean incoming;
|
||||
|
||||
public PrivateMessageHeader(MessageId id, MessageId parent, Author author,
|
||||
String contentType, String subject, long timestamp, boolean read,
|
||||
String contentType, long timestamp, boolean read,
|
||||
ContactId contactId, boolean incoming) {
|
||||
super(id, parent, author, contentType, subject, timestamp, read);
|
||||
super(id, parent, author, contentType, timestamp, read);
|
||||
this.contactId = contactId;
|
||||
this.incoming = incoming;
|
||||
}
|
||||
|
||||
@@ -28,13 +28,6 @@ public interface Message {
|
||||
/** Returns the message's content type. */
|
||||
String getContentType();
|
||||
|
||||
/**
|
||||
* Returns the message's subject line, which is created from the first 50
|
||||
* bytes of the message body if the content type is text/plain, or is the
|
||||
* empty string otherwise.
|
||||
*/
|
||||
String getSubject();
|
||||
|
||||
/** Returns the message's timestamp. */
|
||||
long getTimestamp();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user