We're updating the issue view to help you get more done. 

Add userKick events when kicking

Description

Right now, when a user is kicked, the Room class broadcasts a userDeparture event. A user has suggested that it broadcast a userKick event. Code change would replace line 1029. Suggested change is:

if(item.reason != undefined) {
dispatchEvent( {target:this, type:"userKick", nickname:userNickname, reason:item.reason} );
} else {
dispatchEvent( {target:this, type:"userDeparture", nickname:userNickname} );
}

Environment

None

Acceptance Test - Entry

None

Activity

Show:
Sean Voisen
December 17, 2006, 10:40 AM

AS2 ISSUE: Reinvestigate for AS3

Michael McCarthy
April 22, 2010, 9:08 PM

In our fork of XIFF (probably a bad idea in retrospect) we added a similar thing for granting and revoking of voice. We added two new RoomEvents - USER_VOICE_REVOKED and RoomEvent.USER_VOICE_GRANTED.

Then we added this in the first 'else' of updateRoomRoster:

if(occupant.role != item.role)
{
if(item.role == MUC.VISITOR_ROLE)
{
e = new RoomEvent(RoomEvent.USER_VOICE_REVOKED);
e.nickname = userNickname
e.data = aPresence;
dispatchEvent(e);
}
else if(item.role == MUC.PARTICIPANT_ROLE)
{
e = new RoomEvent(RoomEvent.USER_VOICE_GRANTED);
e.nickname = userNickname
e.data = aPresence;
dispatchEvent(e);
}
}
occupant.affiliation = item.affiliation;
occupant.role = item.role;
occupant.show = aPresence.show;
}

Would anyone else have any interest in using this?

Mark Walters
August 6, 2010, 7:34 PM

USER_KICKED and USER_BANNED events are dispatched.

Fixed

Assignee

Sean Voisen

Reporter

Sean Voisen

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Minor
Configure