Not logged in. · Lost password · Register
Forum: MatriX RSS
dtjoa #1
Member since Jul 2012 · 39 posts
Group memberships: Members
Show profile · Link to this post
Subject: Adding Photo Hash in Presence
I update my vCard-temp with Photo, but my presence does not contain Photo Hash.
Is there anything I need to do to append Photo Hash in presence message?
Alex #2
Member since Feb 2003 · 4296 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Use the OnBeforeSendPresence event to add custom data to your outgoing presences.

Here is an example:

  1. private void xmppClient_OnBeforeSendPresence(object sender, PresenceEventArgs e)
  2. {
  3.     e.Presence.Add(new Matrix.Xmpp.Vcard.Update.X("Your-photo-hash"));   
  4. }
This post was edited on 2013-08-26, 15:16 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:
Forum: MatriX RSS