announce OTR support as per XEP-0378
This commit is contained in:
parent
f98e2ac49b
commit
d32a03fe52
1 changed files with 6 additions and 0 deletions
|
@ -45,6 +45,9 @@ public abstract class AbstractGenerator {
|
|||
private final String[] PRIVACY_SENSITIVE = {
|
||||
"urn:xmpp:time" //XEP-0202: Entity Time leaks time zone
|
||||
};
|
||||
private final String[] OTR = {
|
||||
"urn:xmpp:otr:0"
|
||||
};
|
||||
private String mVersion = null;
|
||||
|
||||
private String mVersionOs = null;
|
||||
|
@ -115,6 +118,9 @@ public abstract class AbstractGenerator {
|
|||
if (!mXmppConnectionService.useTorToConnect()) {
|
||||
features.addAll(Arrays.asList(PRIVACY_SENSITIVE));
|
||||
}
|
||||
if (Config.supportOtr()) {
|
||||
features.addAll(Arrays.asList(OTR));
|
||||
}
|
||||
Collections.sort(features);
|
||||
return features;
|
||||
}
|
||||
|
|
Reference in a new issue