mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-13 19:29:06 +01:00
Only allow one private group (the inbox) to be shared with each contact.
This commit is contained in:
@@ -208,8 +208,8 @@ SelectContactsDialog.Listener {
|
||||
long now = System.currentTimeMillis();
|
||||
if(subscribe) {
|
||||
if(!wasSubscribed) db.addGroup(group);
|
||||
db.setVisibleToAll(group.getId(), all);
|
||||
if(!all) db.setVisibility(group.getId(), visible);
|
||||
db.setVisibleToAll(group, all);
|
||||
if(!all) db.setVisibility(group, visible);
|
||||
} else if(wasSubscribed) {
|
||||
db.removeGroup(group);
|
||||
}
|
||||
|
||||
@@ -176,8 +176,8 @@ SelectContactsDialog.Listener {
|
||||
Group g = groupFactory.createGroup(name, false);
|
||||
long now = System.currentTimeMillis();
|
||||
db.addGroup(g);
|
||||
if(all) db.setVisibleToAll(g.getId(), true);
|
||||
else db.setVisibility(g.getId(), visible);
|
||||
if(all) db.setVisibleToAll(g, true);
|
||||
else db.setVisibility(g, visible);
|
||||
long duration = System.currentTimeMillis() - now;
|
||||
if(LOG.isLoggable(INFO))
|
||||
LOG.info("Storing group took " + duration + " ms");
|
||||
|
||||
Reference in New Issue
Block a user