1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2025-09-10 09:39:39 +02:00

Use stream feature to discover whether in-band registration is available. SMACK-160

git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@4797 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Gaston Dombiak 2006-08-03 17:04:01 +00:00 committed by gato
parent 84cc5fb1c6
commit b34152e9f5
2 changed files with 35 additions and 2 deletions

View file

@ -470,6 +470,9 @@ class PacketReader {
// The server supports stream compression
connection.setAvailableCompressionMethods(parseCompressionMethods(parser));
}
else if (parser.getName().equals("register")) {
connection.getAccountManager().setSupportsAccountCreation(true);
}
}
else if (eventType == XmlPullParser.END_TAG) {
if (parser.getName().equals("features")) {