Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
mikrixara #1
Member since Oct 2009 · 6 posts
Group memberships: Members
Show profile · Link to this post
Subject: How to search in a Roster List?
Hello,

My question is: Is there a way to find if a jid allready exists in my contacts? As I can see, RosterManager has only Add and Remove  methods, but there is no find or exist method...

Thanks in advance!
Avatar
Alex #2
Member since Feb 2003 · 4307 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
The RosterManager does not hold the roster for you in memory.
All you have to do is listen to the OnRosterItem event and put each item in a List. Then you can search in your list.

We do not store the roster to keep memory usage low. Normally every IM app has some kind of GUI for the roster and stores it in own collections. But when this is a feature many users are looking for then we are open to add this with one of the next releases to the RosterManager.

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:
Forum: MatriX RSS