mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-18 13:49:53 +01:00
Remove group from database in PrivateGroupManager
This commit is contained in:
@@ -138,12 +138,13 @@ public class PrivateGroupManagerImpl extends BdfIncomingMessageHook implements
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void removePrivateGroup(GroupId g) throws DbException {
|
public void removePrivateGroup(GroupId g) throws DbException {
|
||||||
// TODO
|
|
||||||
Transaction txn = db.startTransaction(false);
|
Transaction txn = db.startTransaction(false);
|
||||||
try {
|
try {
|
||||||
for (PrivateGroupHook hook : hooks) {
|
for (PrivateGroupHook hook : hooks) {
|
||||||
hook.removingGroup(txn, g);
|
hook.removingGroup(txn, g);
|
||||||
}
|
}
|
||||||
|
Group group = db.getGroup(txn, g);
|
||||||
|
db.removeGroup(txn, group);
|
||||||
txn.setComplete();
|
txn.setComplete();
|
||||||
} finally {
|
} finally {
|
||||||
db.endTransaction(txn);
|
db.endTransaction(txn);
|
||||||
|
|||||||
Reference in New Issue
Block a user