mirror of
https://github.com/moparisthebest/Conversations
synced 2024-12-26 01:09:13 -05:00
announce OTR support as per XEP-0378
This commit is contained in:
parent
e90e333f29
commit
2843a0af26
@ -45,6 +45,9 @@ public abstract class AbstractGenerator {
|
|||||||
private final String[] PRIVACY_SENSITIVE = {
|
private final String[] PRIVACY_SENSITIVE = {
|
||||||
"urn:xmpp:time" //XEP-0202: Entity Time leaks time zone
|
"urn:xmpp:time" //XEP-0202: Entity Time leaks time zone
|
||||||
};
|
};
|
||||||
|
private final String[] OTR = {
|
||||||
|
"urn:xmpp:otr:0"
|
||||||
|
};
|
||||||
private String mVersion = null;
|
private String mVersion = null;
|
||||||
protected final String IDENTITY_NAME = "Conversations";
|
protected final String IDENTITY_NAME = "Conversations";
|
||||||
protected final String IDENTITY_TYPE = "phone";
|
protected final String IDENTITY_TYPE = "phone";
|
||||||
@ -105,6 +108,9 @@ public abstract class AbstractGenerator {
|
|||||||
if (!mXmppConnectionService.useTorToConnect()) {
|
if (!mXmppConnectionService.useTorToConnect()) {
|
||||||
features.addAll(Arrays.asList(PRIVACY_SENSITIVE));
|
features.addAll(Arrays.asList(PRIVACY_SENSITIVE));
|
||||||
}
|
}
|
||||||
|
if (Config.supportOtr()) {
|
||||||
|
features.addAll(Arrays.asList(OTR));
|
||||||
|
}
|
||||||
Collections.sort(features);
|
Collections.sort(features);
|
||||||
return features;
|
return features;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user