Improve remote delete handling in group story threads.

This commit is contained in:
Alex Hart
2022-04-20 15:00:19 -03:00
parent 8b1552952c
commit 944c8530d8
8 changed files with 246 additions and 33 deletions

View File

@@ -15,6 +15,17 @@ import org.thoughtcrime.securesms.util.task.ProgressDialogAsyncTask
object DeleteDialog {
/**
* Displays a deletion dialog for the given set of message records.
*
* @param context Android Context
* @param messageRecords The message records to delete
* @param title The dialog title
* @param message The dialog message, or null
* @param forceRemoteDelete Allow remote deletion, even if it would normally be disallowed
*
* @return a Single, who's value notes whether or not a thread deletion occurred.
*/
fun show(
context: Context,
messageRecords: Set<MessageRecord>,