If we get send a form of type submit or cancel, ignore it
Stephen Paul Weber
created
These don't make any sense to send to us, but in practise biboumi does and
expects us to ignore it.
Change summary
src/main/java/eu/siacs/conversations/entities/Conversation.java | 5 ++
1 file changed, 4 insertions(+), 1 deletion(-)
Detailed changes
@@ -1755,7 +1755,10 @@ public class Conversation extends AbstractEntity implements Blockable, Comparabl
mTitle = title;
ConversationPagerAdapter.this.notifyDataSetChanged();
}
- this.responseElement = el;
+
+ if (el.getAttribute("type").equals("result") || el.getAttribute("type").equals("form")) {
+ this.responseElement = el;
+ }
break;
}
if (el.getName().equals("x") && el.getNamespace().equals("jabber:x:oob")) {