mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-23 17:22:17 -05:00
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
|
||||
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);
|
||||
} else {
|
||||
Log.d(Config.LOGTAG,account.getJid().toBareJid()+": skipping OMEMO initialization");
|
||||
|
Loading…
Reference in New Issue
Block a user