Obtaining XMPP Chat Room Users [message #618840] |
Tue, 17 July 2007 22:32 |
Eclipse User |
|
|
|
Originally posted by: robertxlongo.gmail.com
I know that I can add an IChatRoomParticipantListener to a
IChatRoomContainer to listen for participants arriving and departing from an
XMPP chat room; however, I can't seem to figure out how to obtain the
initial list of chat room participants. Is this even possible?
The comments for bug #167363
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=167363) discuss this problem
but I cannot figure out if there was a resolution.
Thanks,
Robert
|
|
|
|
Re: Obtaining XMPP Chat Room Users [message #618842 is a reply to message #618841] |
Tue, 17 July 2007 23:19 |
Eclipse User |
|
|
|
Originally posted by: robertxlongo.gmail.com
Hi Scott,
That worked.
Thank you for the quick response!
Best regards,
Robert
"Scott Lewis" <slewis@composent.com> wrote in message
news:469D4932.4060109@composent.com...
> Hi Robert,
>
> Robert Longo wrote:
>> I know that I can add an IChatRoomParticipantListener to a
>> IChatRoomContainer to listen for participants arriving and departing from
>> an XMPP chat room; however, I can't seem to figure out how to obtain the
>> initial list of chat room participants. Is this even possible?
>
> If the IChatRoomParticipantListener is registered with the enclosing
> IChatRoomContainer before the IChatRoomContainer.connect() call is made,
> then it will be notified via handleArrived(IUser user) (followed by
> followed by a handlePresenceUpdated()) of all current chat room
> participants.
>
> Then, after arrival, if other users come or go they will similarly result
> in handleArrived/handlePresenceUpdated (join), or
> handlePresenceUpdated/handleDeparted (left) notifications.
>
> Unlike the roster, the chat room participants list is not maintained as
> state within the provider. If there is a use case where this is not
> sufficient (where it's necessary to have a 'getCurrentParticipants()'
> method on the IChatRoomContainer) please let us know.
>
> Scott
>
>>
>> The comments for bug #167363
>> (https://bugs.eclipse.org/bugs/show_bug.cgi?id=167363) discuss this
>> problem but I cannot figure out if there was a resolution.
>>
>> Thanks,
>> Robert
>>
|
|
|
Powered by
FUDForum. Page generated in 0.25294 seconds