mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-26 14:02:06 +01:00
fix for new chat manager
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@6271 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
7a16b8ff95
commit
dd754e5a7f
1 changed files with 21 additions and 19 deletions
|
@ -1801,10 +1801,12 @@ public class MultiUserChat {
|
|||
* to the intended recipient's full JID.
|
||||
*
|
||||
* @param occupant occupant unique room JID (e.g. 'darkcave@macbeth.shakespeare.lit/Paul').
|
||||
* @param listener the listener is a message listener that will handle messages for the newly
|
||||
* created chat.
|
||||
* @return new Chat for sending private messages to a given room occupant.
|
||||
*/
|
||||
public Chat createPrivateChat(String occupant) {
|
||||
return connection.getChatManager().createChat(occupant, null);
|
||||
public Chat createPrivateChat(String occupant, MessageListener listener) {
|
||||
return connection.getChatManager().createChat(occupant, listener);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue