mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-11 18:29:05 +01:00
Allow to add forum/group posts in transaction
This commit is contained in:
@@ -60,6 +60,12 @@ public interface ForumManager {
|
||||
*/
|
||||
ForumPostHeader addLocalPost(ForumPost p) throws DbException;
|
||||
|
||||
/**
|
||||
* Stores a local forum post.
|
||||
*/
|
||||
ForumPostHeader addLocalPost(Transaction txn, ForumPost p)
|
||||
throws DbException;
|
||||
|
||||
/**
|
||||
* Returns the forum with the given ID.
|
||||
*/
|
||||
|
||||
@@ -82,6 +82,12 @@ public interface PrivateGroupManager {
|
||||
*/
|
||||
GroupMessageHeader addLocalMessage(GroupMessage p) throws DbException;
|
||||
|
||||
/**
|
||||
* Stores and sends a local private group message.
|
||||
*/
|
||||
GroupMessageHeader addLocalMessage(Transaction txn, GroupMessage p)
|
||||
throws DbException;
|
||||
|
||||
/**
|
||||
* Returns the private group with the given ID.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user