mirror of
https://github.com/moparisthebest/Conversations
synced 2024-11-24 17:52:17 -05:00
add OS to version response
This commit is contained in:
parent
dbab43e423
commit
178229ac60
@ -60,6 +60,11 @@ public class IqGenerator extends AbstractGenerator {
|
|||||||
Element query = packet.query("jabber:iq:version");
|
Element query = packet.query("jabber:iq:version");
|
||||||
query.addChild("name").setContent(mXmppConnectionService.getString(R.string.app_name));
|
query.addChild("name").setContent(mXmppConnectionService.getString(R.string.app_name));
|
||||||
query.addChild("version").setContent(getIdentityVersion());
|
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;
|
return packet;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user