not able to customize presence stanza in MucComponent.java in ProcessPacket method

I am implementing group message in my application. but when user closes spark window then spark client sends presence stanza with type=unavailable. now I detected that stanza and want to set presence type from unavailable to available but when i do so, test case get failed and because of that test cases gets failed my entire build gets failed.

Replies (3)

Well, tests verify MUC component processing stanzas according to standard and you are virtually breaking it so the tests fails. If you want non-standard processing then remove tests that would fail. I would also suggest modifying PresenceModule instead of MUCCOmponent.