Fix media send HUD consistency issue.

Only affects people who have force-enabled revealable messages and then
gone back to a build that doesn't have it enabled.
This commit is contained in:
Greyson Parrelli 2019-07-23 08:47:22 -04:00
parent ead6e6b2f3
commit 1a85a9cb31

View File

@ -187,7 +187,9 @@ class MediaSendViewModel extends ViewModel {
buttonState = (recipient != null) ? ButtonState.SEND : ButtonState.CONTINUE;
if (revealState == RevealState.GONE && revealSupported()) {
revealState = TextSecurePreferences.isRevealableMessageEnabled(application) ? RevealState.ENABLED : RevealState.DISABLED;
// TODO[reveal]
// revealState = TextSecurePreferences.isRevealableMessageEnabled(application) ? RevealState.ENABLED : RevealState.DISABLED;
revealState = RevealState.GONE;
} else if (!revealSupported()) {
revealState = RevealState.GONE;
}