From 178229ac60879017cad3c18bdc3723deded492bc Mon Sep 17 00:00:00 2001 From: Daniel Gultsch Date: Wed, 27 Jul 2016 20:58:13 +0200 Subject: [PATCH] add OS to version response --- .../java/eu/siacs/conversations/generator/IqGenerator.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java index bd4f41313..ad650c3ef 100644 --- a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java +++ b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java @@ -60,6 +60,11 @@ public class IqGenerator extends AbstractGenerator { Element query = packet.query("jabber:iq:version"); query.addChild("name").setContent(mXmppConnectionService.getString(R.string.app_name)); query.addChild("version").setContent(getIdentityVersion()); + if ("chromium".equals(android.os.Build.BRAND)) { + query.addChild("os").setContent("Chromium"); + } else{ + query.addChild("os").setContent("Android"); + } return packet; }