aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Gultsch <daniel@gultsch.de>2016-07-27 20:58:13 +0200
committerChristian Schneppe <christian@pix-art.de>2016-07-27 21:31:40 +0200
commitf6ff83a8cc0f2040dcf804ab62fe270a082f8d96 (patch)
treee12d32e75a0b44028d7b7973052f85f95e5f3f53
parentbcadc56519068d1a5721569d8fea90fa1f6157a4 (diff)
add OS to version response
-rw-r--r--src/main/java/eu/siacs/conversations/generator/IqGenerator.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java
index 3aff63a3a..ad650c3ef 100644
--- a/src/main/java/eu/siacs/conversations/generator/IqGenerator.java
+++ b/src/main/java/eu/siacs/conversations/generator/IqGenerator.java
@@ -60,7 +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());
- query.addChild("os").setContent(getIdentityVersionOs());
+ if ("chromium".equals(android.os.Build.BRAND)) {
+ query.addChild("os").setContent("Chromium");
+ } else{
+ query.addChild("os").setContent("Android");
+ }
return packet;
}