incorporate support for publish-options into server info

This commit is contained in:
Daniel Gultsch 2017-07-17 12:47:06 +02:00
parent 85dc0c284d
commit 74cde1d60a

View File

@ -905,7 +905,7 @@ public class EditAccountActivity extends OmemoActivity implements OnAccountUpdat
} else { } else {
this.mServerInfoSm.setText(R.string.server_info_unavailable); this.mServerInfoSm.setText(R.string.server_info_unavailable);
} }
if (features.pep()) { if (features.pep() && features.pepPublishOptions()) {
AxolotlService axolotlService = this.mAccount.getAxolotlService(); AxolotlService axolotlService = this.mAccount.getAxolotlService();
if (axolotlService != null && axolotlService.isPepBroken()) { if (axolotlService != null && axolotlService.isPepBroken()) {
this.mServerInfoPep.setText(R.string.server_info_broken); this.mServerInfoPep.setText(R.string.server_info_broken);