diff --git a/source/org/jivesoftware/smack/GroupChat.java b/source/org/jivesoftware/smack/GroupChat.java index e3e639f5d..b4cd4fcf3 100644 --- a/source/org/jivesoftware/smack/GroupChat.java +++ b/source/org/jivesoftware/smack/GroupChat.java @@ -198,6 +198,16 @@ public class GroupChat { joined = true; } + /** + * 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; + } + /** * Leave the chat room. */