Getting status of a contactt

is there an easy way to know if a contact in the roster is online or not?

Thanks

raphinou,

Presence support hasn’‘t been added yet, but should be in there for the next beta. The main issue I’'m wrestling with is how to support presence from the same JID with multiple resources. Anyone have ideas on this?

Regards,

Matt

Did you mean receiving presence from other resource from the same JID?

Did you mean receiving presence from other resource

from the same JID?

Yes, that’'s the tricky thing to handle.

Regards,

Matt

i created 2 resources: Mark@cs.rs/Work and Mark@cs.rs/Work1

in debug XML window (IM logged as Mark@cs.rs/Work) i’'ve saw

RECV: <presence from=’‘Mark@cs.rs/Work1’’ to=’‘Mark@cs.rs’’>available0

i think that there are no difference in receiving of presence packet from another resource.

As i know usually other resources are shown in roster in IM only while they are online

So i see here 2 choices:

  1. ignore other resources presence (not better way)

  2. show in local (client) roster them when they are online

Hi all,

How about keeping 2 tables in sync?

One which simply contains JID → Resource list

e.g

key:user@host.com

Vector: user@host.com/resource1, user@host.com/resource2

And one which contains resource → presence object

key: user@host.com/resource1

PresenceObject:

May have to address the problem of presence subscription over multiple resources?

-Buzz.

i created 2 resources: Mark@cs.rs/Work and

Mark@cs.rs/Work1

in debug XML window (IM logged as Mark@cs.rs/Work)

i’'ve saw

RECV: <presence from=‘‘Mark@cs.rs/Work1’’

> to=‘‘Mark@cs.rs’’>available0<

priority>

i think that there are no difference in receiving of

presence packet from another resource.

As i know usually other resources are shown in roster

in IM only while they are online

So i see here 2 choices:

  1. ignore other resources presence (not better way)
  1. show in local (client) roster them when they are

online