diff --git a/source/org/jivesoftware/smack/GroupChat.java b/source/org/jivesoftware/smack/GroupChat.java index 7d63f2143..cec292930 100644 --- a/source/org/jivesoftware/smack/GroupChat.java +++ b/source/org/jivesoftware/smack/GroupChat.java @@ -126,6 +126,15 @@ public class GroupChat { }, presenceFilter); } + /** + * Returns the name of the room this GroupChat object represents. + * + * @return the groupchat room name. + */ + public String getRoom() { + return room; + } + /** * 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