mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Allow messages to be marked as temporary.
This commit is contained in:
@@ -270,7 +270,7 @@ class IntroductionManagerImpl extends ConversationClientImpl
|
||||
private MessageId createStorageId(Transaction txn) throws DbException {
|
||||
Message m = clientHelper
|
||||
.createMessageForStoringMetadata(localGroup.getId());
|
||||
db.addLocalMessage(txn, m, new Metadata(), false);
|
||||
db.addLocalMessage(txn, m, new Metadata(), false, false);
|
||||
return m.getId();
|
||||
}
|
||||
|
||||
|
||||
@@ -248,7 +248,7 @@ class GroupInvitationManagerImpl extends ConversationClientImpl
|
||||
private MessageId createStorageId(Transaction txn, GroupId g)
|
||||
throws DbException {
|
||||
Message m = clientHelper.createMessageForStoringMetadata(g);
|
||||
db.addLocalMessage(txn, m, new Metadata(), false);
|
||||
db.addLocalMessage(txn, m, new Metadata(), false, false);
|
||||
return m.getId();
|
||||
}
|
||||
|
||||
|
||||
@@ -240,7 +240,7 @@ abstract class SharingManagerImpl<S extends Shareable>
|
||||
private MessageId createStorageId(Transaction txn, GroupId g)
|
||||
throws DbException {
|
||||
Message m = clientHelper.createMessageForStoringMetadata(g);
|
||||
db.addLocalMessage(txn, m, new Metadata(), false);
|
||||
db.addLocalMessage(txn, m, new Metadata(), false, false);
|
||||
return m.getId();
|
||||
}
|
||||
|
||||
|
||||
@@ -226,7 +226,7 @@ public class GroupInvitationManagerImplTest extends BrambleMockTestCase {
|
||||
.createMessageForStoringMetadata(contactGroup.getId());
|
||||
will(returnValue(storageMessage));
|
||||
oneOf(db).addLocalMessage(txn, storageMessage, new Metadata(),
|
||||
false);
|
||||
false, false);
|
||||
}});
|
||||
}
|
||||
|
||||
|
||||
@@ -221,7 +221,8 @@ public class BlogSharingManagerImplTest extends BrambleMockTestCase {
|
||||
oneOf(clientHelper)
|
||||
.createMessageForStoringMetadata(contactGroup.getId());
|
||||
will(returnValue(message));
|
||||
oneOf(db).addLocalMessage(txn, message, new Metadata(), false);
|
||||
oneOf(db).addLocalMessage(txn, message, new Metadata(), false,
|
||||
false);
|
||||
oneOf(sessionEncoder).encodeSession(with(any(Session.class)));
|
||||
will(returnValue(sessionDict));
|
||||
oneOf(clientHelper).mergeMessageMetadata(txn, message.getId(),
|
||||
|
||||
Reference in New Issue
Block a user