diff options
author | Daniel Gultsch <daniel@gultsch.de> | 2016-07-27 20:58:13 +0200 |
---|---|---|
committer | Daniel Gultsch <daniel@gultsch.de> | 2016-07-27 20:58:13 +0200 |
commit | 178229ac60879017cad3c18bdc3723deded492bc (patch) | |
tree | db81ce266e094560039c03c609942dd7af9339e2 /src/main/java | |
parent | dbab43e42388572c19f59339cf0c8a76f85b8b7b (diff) |
add OS to version response
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/eu/siacs/conversations/generator/IqGenerator.java | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java index bd4f4131..ad650c3e 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; } |