mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-04 15:45:58 +01:00
Fixes a bug parsing MUCOwner packets.
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2380 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
c395074c86
commit
10e7cbb20e
1 changed files with 3 additions and 6 deletions
|
@ -75,16 +75,13 @@ public class MUCOwnerProvider implements IQProvider {
|
||||||
if (parser.getName().equals("item")) {
|
if (parser.getName().equals("item")) {
|
||||||
mucOwner.addItem(parseItem(parser));
|
mucOwner.addItem(parseItem(parser));
|
||||||
}
|
}
|
||||||
if (parser.getName().equals("destroy")) {
|
else if (parser.getName().equals("destroy")) {
|
||||||
mucOwner.setDestroy(parseDestroy(parser));
|
mucOwner.setDestroy(parseDestroy(parser));
|
||||||
}
|
}
|
||||||
// Otherwise, it must be a packet extension.
|
// Otherwise, it must be a packet extension.
|
||||||
else {
|
else {
|
||||||
mucOwner.addExtension(
|
mucOwner.addExtension(PacketParserUtils.parsePacketExtension(parser.getName(),
|
||||||
PacketParserUtils.parsePacketExtension(
|
parser.getNamespace(), parser));
|
||||||
parser.getName(),
|
|
||||||
parser.getNamespace(),
|
|
||||||
parser));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (eventType == XmlPullParser.END_TAG) {
|
else if (eventType == XmlPullParser.END_TAG) {
|
||||||
|
|
Loading…
Reference in a new issue