mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 10:49:06 +01:00
Allow unsubscribing from shared blogs
Only personal blogs from non-contacts can be removed. This also adds integration tests that check if blogs can actually be removed. Closes #579
This commit is contained in:
@@ -3,7 +3,9 @@ package org.briarproject.android.blogs;
|
||||
import android.support.annotation.Nullable;
|
||||
|
||||
import org.briarproject.android.controller.ActivityLifecycleController;
|
||||
import org.briarproject.android.controller.handler.ResultExceptionHandler;
|
||||
import org.briarproject.android.controller.handler.ResultHandler;
|
||||
import org.briarproject.api.db.DbException;
|
||||
import org.briarproject.api.sync.GroupId;
|
||||
import org.briarproject.api.sync.MessageId;
|
||||
|
||||
@@ -22,6 +24,9 @@ public interface BlogController extends ActivityLifecycleController {
|
||||
@Nullable
|
||||
MessageId getBlogPostId(int position);
|
||||
|
||||
void canDeleteBlog(GroupId groupId,
|
||||
ResultExceptionHandler<Boolean, DbException> resultHandler);
|
||||
|
||||
void deleteBlog(ResultHandler<Boolean> resultHandler);
|
||||
|
||||
interface BlogPostListener {
|
||||
|
||||
Reference in New Issue
Block a user