mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Removed the ability to star messages (unused in UI).
This commit is contained in:
@@ -213,9 +213,6 @@ public interface DatabaseComponent {
|
||||
/** Returns all temporary secrets. */
|
||||
Collection<TemporarySecret> getSecrets() throws DbException;
|
||||
|
||||
/** Returns true if the given message has been starred. */
|
||||
boolean getStarredFlag(MessageId m) throws DbException;
|
||||
|
||||
/** Returns the set of groups to which the user subscribes. */
|
||||
Collection<Group> getSubscriptions() throws DbException;
|
||||
|
||||
@@ -325,12 +322,6 @@ public interface DatabaseComponent {
|
||||
/** Records the given messages as having been seen by the given contact. */
|
||||
void setSeen(ContactId c, Collection<MessageId> seen) throws DbException;
|
||||
|
||||
/**
|
||||
* Marks the given message starred or unstarred and returns true if it was
|
||||
* previously starred.
|
||||
*/
|
||||
boolean setStarredFlag(MessageId m, boolean starred) throws DbException;
|
||||
|
||||
/**
|
||||
* Makes the given group visible to the given set of contacts and invisible
|
||||
* to any other current or future contacts.
|
||||
|
||||
@@ -10,9 +10,8 @@ public class GroupMessageHeader extends MessageHeader {
|
||||
|
||||
public GroupMessageHeader(MessageId id, MessageId parent, Author author,
|
||||
String contentType, String subject, long timestamp, boolean read,
|
||||
boolean starred, GroupId groupId) {
|
||||
super(id, parent, author, contentType, subject, timestamp, read,
|
||||
starred);
|
||||
GroupId groupId) {
|
||||
super(id, parent, author, contentType, subject, timestamp, read);
|
||||
this.groupId = groupId;
|
||||
}
|
||||
|
||||
|
||||
@@ -9,11 +9,10 @@ public abstract class MessageHeader {
|
||||
private final Author author;
|
||||
private final String contentType, subject;
|
||||
private final long timestamp;
|
||||
private final boolean read, starred;
|
||||
private final boolean read;
|
||||
|
||||
protected MessageHeader(MessageId id, MessageId parent, Author author,
|
||||
String contentType, String subject, long timestamp, boolean read,
|
||||
boolean starred) {
|
||||
String contentType, String subject, long timestamp, boolean read) {
|
||||
this.id = id;
|
||||
this.parent = parent;
|
||||
this.author = author;
|
||||
@@ -21,7 +20,6 @@ public abstract class MessageHeader {
|
||||
this.subject = subject;
|
||||
this.timestamp = timestamp;
|
||||
this.read = read;
|
||||
this.starred = starred;
|
||||
}
|
||||
|
||||
/** Returns the message's unique identifier. */
|
||||
@@ -63,9 +61,4 @@ public abstract class MessageHeader {
|
||||
public boolean isRead() {
|
||||
return read;
|
||||
}
|
||||
|
||||
/** Returns true if the message has been starred. */
|
||||
public boolean isStarred() {
|
||||
return starred;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -11,9 +11,8 @@ public class PrivateMessageHeader extends MessageHeader {
|
||||
|
||||
public PrivateMessageHeader(MessageId id, MessageId parent, Author author,
|
||||
String contentType, String subject, long timestamp, boolean read,
|
||||
boolean starred, ContactId contactId, boolean incoming) {
|
||||
super(id, parent, author, contentType, subject, timestamp, read,
|
||||
starred);
|
||||
ContactId contactId, boolean incoming) {
|
||||
super(id, parent, author, contentType, subject, timestamp, read);
|
||||
this.contactId = contactId;
|
||||
this.incoming = incoming;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user