add OS to version response

This commit is contained in:
Daniel Gultsch 2016-07-27 20:58:13 +02:00
parent dbab43e423
commit 178229ac60
1 changed files with 5 additions and 0 deletions

View File

@ -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;
}