Replace MessagesCleanedUpEvent with ConversationMessagesDeletedEvent

This commit is contained in:
Torsten Grote
2021-02-26 11:45:07 -03:00
parent 644afe8995
commit ef37428714
4 changed files with 13 additions and 15 deletions

View File

@@ -3,7 +3,6 @@ package org.briarproject.bramble.cleanup;
import org.briarproject.bramble.api.cleanup.CleanupHook;
import org.briarproject.bramble.api.cleanup.CleanupManager;
import org.briarproject.bramble.api.cleanup.event.CleanupTimerStartedEvent;
import org.briarproject.bramble.api.cleanup.event.MessagesCleanedUpEvent;
import org.briarproject.bramble.api.db.DatabaseComponent;
import org.briarproject.bramble.api.db.DatabaseExecutor;
import org.briarproject.bramble.api.db.DbException;
@@ -146,7 +145,6 @@ class CleanupManagerImpl implements CleanupManager, Service, EventListener {
throw new IllegalStateException("No cleanup hook for " + cv);
}
hook.deleteMessages(txn, groupId, messageIds);
txn.attach(new MessagesCleanedUpEvent(groupId, messageIds));
}
}