diff --git a/source/org/jivesoftware/smack/GroupChat.java b/source/org/jivesoftware/smack/GroupChat.java index e3f1e3539..41c75a7e4 100644 --- a/source/org/jivesoftware/smack/GroupChat.java +++ b/source/org/jivesoftware/smack/GroupChat.java @@ -148,6 +148,16 @@ public class GroupChat { join(nickname, 5000); } + /** + * Returns true if currently in the group chat (after calling the {@link + * #join(String)} method. + * + * @return true if currently in the group chat room. + */ + public boolean isJoined() { + return joined; + } + /** * Joins the chat room using the specified nickname. If already joined as * another nickname, will leave as that name first before joining under the new