mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-21 09:20:19 +01:00
Add group terminate support.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user