mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-04-20 16:49:40 +01:00
Add support for Group V2 description field.
This commit is contained in:
committed by
Greyson Parrelli
parent
b3aec58e69
commit
8c9df8d3be
@@ -80,6 +80,7 @@ public final class FeatureFlags {
|
||||
private static final String NOTIFICATION_REWRITE = "android.notificationRewrite";
|
||||
private static final String MP4_GIF_SEND_SUPPORT = "android.mp4GifSendSupport";
|
||||
private static final String MEDIA_QUALITY_LEVELS = "android.mediaQuality.levels";
|
||||
private static final String GROUPS_V2_DESCRIPTION_VERSION = "android.groupsv2.descriptionVersion";
|
||||
|
||||
/**
|
||||
* We will only store remote values for flags in this set. If you want a flag to be controllable
|
||||
@@ -113,7 +114,8 @@ public final class FeatureFlags {
|
||||
MESSAGE_PROCESSOR_DELAY,
|
||||
NOTIFICATION_REWRITE,
|
||||
MP4_GIF_SEND_SUPPORT,
|
||||
MEDIA_QUALITY_LEVELS
|
||||
MEDIA_QUALITY_LEVELS,
|
||||
GROUPS_V2_DESCRIPTION_VERSION
|
||||
);
|
||||
|
||||
@VisibleForTesting
|
||||
@@ -159,7 +161,8 @@ public final class FeatureFlags {
|
||||
GV1_FORCED_MIGRATE,
|
||||
NOTIFICATION_REWRITE,
|
||||
MP4_GIF_SEND_SUPPORT,
|
||||
MEDIA_QUALITY_LEVELS
|
||||
MEDIA_QUALITY_LEVELS,
|
||||
GROUPS_V2_DESCRIPTION_VERSION
|
||||
);
|
||||
|
||||
/**
|
||||
@@ -359,6 +362,10 @@ public final class FeatureFlags {
|
||||
return getString(MEDIA_QUALITY_LEVELS, "");
|
||||
}
|
||||
|
||||
public static boolean groupsV2Description() {
|
||||
return getVersionFlag(GROUPS_V2_DESCRIPTION_VERSION) == VersionFlag.ON;
|
||||
}
|
||||
|
||||
/** Only for rendering debug info. */
|
||||
public static synchronized @NonNull Map<String, Object> getMemoryValues() {
|
||||
return new TreeMap<>(REMOTE_VALUES);
|
||||
|
||||
@@ -126,6 +126,10 @@ public final class LiveDataUtil {
|
||||
return new MutableLiveData<>(item);
|
||||
}
|
||||
|
||||
public static <A> LiveData<A> empty() {
|
||||
return new MutableLiveData<>();
|
||||
}
|
||||
|
||||
/**
|
||||
* Emits {@param whileWaiting} until {@param main} starts emitting.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user