Not logged in. · Lost password · Register
Forum: MatriX and XmppDotNet RSS
Avatar
Eric380 #1
Member since Jun 2012 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: MucManager initial occupant list
After I get the initial list of occupants in the chat room I need to display in the history window a message that the occupant entered or left the room. 

To get the occupant list inside a chat room I use xmppClient.PresenceFilter.  The OnPresence callback gives me when an occupant enters or leaves the room.  The problem is there is no way to know when the initial list is finished.

Are there events OnOccupantListStart and OnOccupantListEnd similar to OnRosterStart and OnRosterEnd?
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Eric380:
Are there events OnOccupantListStart and OnOccupantListEnd similar to OnRosterStart and OnRosterEnd?

no there is nothing like that in the XMPP protocol which tells us that we have receivde all presences now.

One idea which is I have is:

You get first the presences, then the messages and subject. So after join when you get a message you know that you should have all presences now. But this can fail when the room is new and there are no history messages or subject.

Why does it matter when the list is finished? I only check id the sender of the presence is already in my GUI for the list. When not then I add it, otherwise I update the status.

Alex
This post was edited on 2012-06-07, 16:51 by Alex.
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters: