encrypt to inactive and untrusted devices in jingle
encrypting to untrusted devices means no degradition of security compared to not encrypting at all. Trust status display (shield) is made independently at a later stage.
This commit is contained in:
parent
48156dd27f
commit
3b25fb9038
|
@ -1217,7 +1217,7 @@ public class AxolotlService implements OnAdvancedStreamFeaturesLoaded {
|
||||||
final XmppAxolotlMessage axolotlMessage = new XmppAxolotlMessage(account.getJid().asBareJid(), getOwnDeviceId());
|
final XmppAxolotlMessage axolotlMessage = new XmppAxolotlMessage(account.getJid().asBareJid(), getOwnDeviceId());
|
||||||
final String content = child.getContent();
|
final String content = child.getContent();
|
||||||
axolotlMessage.encrypt(content);
|
axolotlMessage.encrypt(content);
|
||||||
axolotlMessage.addDevice(session);
|
axolotlMessage.addDevice(session, true);
|
||||||
fingerprint.addChild(axolotlMessage.toElement());
|
fingerprint.addChild(axolotlMessage.toElement());
|
||||||
transportInfo.addChild(fingerprint);
|
transportInfo.addChild(fingerprint);
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue