Add group terminate support.

This commit is contained in:
Cody Henthorne
2026-03-19 16:10:26 -04:00
parent 0896718e5c
commit a0c0acb8fc
130 changed files with 1312 additions and 146 deletions

View File

@@ -286,8 +286,8 @@ public class CommunicationActions {
SimpleTask.run(SignalExecutors.BOUNDED, () -> {
GroupRecord group = SignalDatabase.groups().getGroup(groupId).orElse(null);
return group != null && group.isActive() ? Recipient.resolved(group.getRecipientId())
: null;
return group != null && (group.isMember() || group.isTerminated()) ? Recipient.resolved(group.getRecipientId())
: null;
},
recipient -> {
if (recipient != null) {

View File

@@ -1303,5 +1303,17 @@ object RemoteConfig {
defaultValue = 0,
hotSwappable = true
)
/**
* Whether or not to allow admins to terminate groups.
*/
@JvmStatic
@get:JvmName("groupTerminateSend")
val groupTerminateSend: Boolean by remoteBoolean(
key = "android.groupTerminateSend",
defaultValue = false,
hotSwappable = true
)
// endregion
}