Fix WebRTC capability check for unregistered users

Fixes #6358
Closes #6368
// FREEBIE
This commit is contained in:
Christian Ascheberg 2017-03-12 09:13:09 +01:00 committed by Moxie Marlinspike
parent 1683bb4636
commit 12b27cc56b

View File

@ -974,7 +974,10 @@ public class ConversationActivity extends PassphraseRequiredActionBarActivity
}
private void initializeBetaCalling() {
if (!TextSecurePreferences.isWebrtcCallingEnabled(this) || isGroupConversation()) {
if (!TextSecurePreferences.isPushRegistered(this) ||
!TextSecurePreferences.isWebrtcCallingEnabled(this) ||
isGroupConversation())
{
return;
}