Disable expiration menu on inactive group

Fixes #6007
// FREEBIE
This commit is contained in:
Moxie Marlinspike 2017-01-03 13:36:34 -08:00
parent bb1ab2e929
commit 3861084ea2
2 changed files with 5 additions and 0 deletions

View File

@ -510,6 +510,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void handleSelectMessageExpiration() {
if (isPushGroupConversation() && !isActiveGroup()) {
return;
}
ExpirationDialog.show(this, recipients.getExpireMessages(), new ExpirationDialog.OnClickListener() {
@Override
public void onClick(final int expirationTime) {

View File

@ -133,6 +133,7 @@ public class ComposeText extends EmojiEditText {
if (Build.VERSION.SDK_INT <= 13) return inputConnection;
if (mediaListener == null) return inputConnection;
if (inputConnection == null) return null;
EditorInfoCompat.setContentMimeTypes(editorInfo, new String[] {"image/jpeg", "image/png", "image/gif"});
return InputConnectionCompat.createWrapper(inputConnection, editorInfo, new CommitContentListener(mediaListener));