Don't check DB workaround if push group

Fixes #7225
This commit is contained in:
Moxie Marlinspike 2017-11-27 09:44:50 -08:00
parent 17f8a81a56
commit a350106f7d

View File

@ -1055,7 +1055,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
Log.w(TAG, "Resolving registered state..."); Log.w(TAG, "Resolving registered state...");
RegisteredState registeredState; RegisteredState registeredState;
if (recipient.isResolving()) { if (recipient.isPushGroupRecipient()) {
Log.w(TAG, "Push group recipient...");
registeredState = RegisteredState.REGISTERED;
} else if (recipient.isResolving()) {
Log.w(TAG, "Talking to DB directly."); Log.w(TAG, "Talking to DB directly.");
registeredState = DatabaseFactory.getRecipientDatabase(ConversationActivity.this).isRegistered(recipient.getAddress()); registeredState = DatabaseFactory.getRecipientDatabase(ConversationActivity.this).isRegistered(recipient.getAddress());
} else { } else {