only publish keys if omemo is enabled
This commit is contained in:
parent
c65c314801
commit
5137837f6d
|
@ -75,7 +75,9 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onAdvancedStreamFeaturesAvailable(Account account) {
|
public void onAdvancedStreamFeaturesAvailable(Account account) {
|
||||||
if (account.getXmppConnection() != null && account.getXmppConnection().getFeatures().pep()) {
|
if (Config.supportOmemo()
|
||||||
|
&& account.getXmppConnection() != null
|
||||||
|
&& account.getXmppConnection().getFeatures().pep()) {
|
||||||
publishBundlesIfNeeded(true, false);
|
publishBundlesIfNeeded(true, false);
|
||||||
} else {
|
} else {
|
||||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": skipping OMEMO initialization");
|
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": skipping OMEMO initialization");
|
||||||
|
|
Loading…
Reference in a new issue