mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-10 17:49:38 +02:00
Modified to allow sending extensions when inviting a user to a room. SMACK-40
git-svn-id: http://svn.igniterealtime.org/svn/repos/smack/trunk@2444 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
parent
1bf4d2fed2
commit
075db51590
3 changed files with 30 additions and 23 deletions
|
@ -280,18 +280,19 @@ public class MultiUserChatTest extends SmackTestCase {
|
|||
String room,
|
||||
String inviter,
|
||||
String reason,
|
||||
String password) {
|
||||
// Indicate that the invitation was received
|
||||
String password,
|
||||
Message message) {
|
||||
// Indicate that the invitation was received
|
||||
answer[0] = reason;
|
||||
// Reject the invitation
|
||||
MultiUserChat.decline(conn, room, inviter, "I'm busy right now");
|
||||
}
|
||||
});
|
||||
|
||||
// User2 is listening to invitation rejections
|
||||
// User2 is listening to invitation rejections
|
||||
muc2.addInvitationRejectionListener(new InvitationRejectionListener() {
|
||||
public void invitationDeclined(String invitee, String reason) {
|
||||
// Indicate that the rejection was received
|
||||
// Indicate that the rejection was received
|
||||
answer[1] = reason;
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue