diff --git a/src/org/thoughtcrime/securesms/ConversationActivity.java b/src/org/thoughtcrime/securesms/ConversationActivity.java index 77d678b185..bd68b6d8ec 100644 --- a/src/org/thoughtcrime/securesms/ConversationActivity.java +++ b/src/org/thoughtcrime/securesms/ConversationActivity.java @@ -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) { diff --git a/src/org/thoughtcrime/securesms/components/ComposeText.java b/src/org/thoughtcrime/securesms/components/ComposeText.java index 318ba15bf6..100244e40a 100644 --- a/src/org/thoughtcrime/securesms/components/ComposeText.java +++ b/src/org/thoughtcrime/securesms/components/ComposeText.java @@ -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));