Initial raise hand support.

This commit is contained in:
Nicholas Tinsley
2023-12-08 21:07:00 -05:00
committed by Cody Henthorne
parent f2a7824168
commit c2f5a6390e
28 changed files with 577 additions and 23 deletions

View File

@@ -118,6 +118,7 @@ public final class FeatureFlags {
public static final String SEPA_ENABLED_REGIONS = "global.donations.sepaEnabledRegions";
private static final String CALLING_REACTIONS = "android.calling.reactions";
private static final String NOTIFICATION_THUMBNAIL_BLOCKLIST = "android.notificationThumbnailProductBlocklist";
private static final String CALLING_RAISE_HAND = "android.calling.raiseHand";
/**
* We will only store remote values for flags in this set. If you want a flag to be controllable
@@ -187,7 +188,8 @@ public final class FeatureFlags {
IDEAL_ENABLED_REGIONS,
SEPA_ENABLED_REGIONS,
CALLING_REACTIONS,
NOTIFICATION_THUMBNAIL_BLOCKLIST
NOTIFICATION_THUMBNAIL_BLOCKLIST,
CALLING_RAISE_HAND
);
@VisibleForTesting
@@ -259,7 +261,8 @@ public final class FeatureFlags {
CRASH_PROMPT_CONFIG,
BLOCK_SSE,
CALLING_REACTIONS,
NOTIFICATION_THUMBNAIL_BLOCKLIST
NOTIFICATION_THUMBNAIL_BLOCKLIST,
CALLING_RAISE_HAND
);
/**
@@ -672,6 +675,13 @@ public final class FeatureFlags {
return getBoolean(CALLING_REACTIONS, false);
}
/**
* Whether or not group call raise hand is enabled.
*/
public static boolean groupCallRaiseHand() {
return getBoolean(CALLING_RAISE_HAND, false);
}
/** List of device products that are blocked from showing notification thumbnails. */
public static String notificationThumbnailProductBlocklist() {
return getString(NOTIFICATION_THUMBNAIL_BLOCKLIST, "");