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 ChangePresence
When the user changes presence, say to dnd, I need it to be sent to all chat rooms (MucMangers) as well as contacts.  I call xmppClient.SendPresence(Show.dnd).  I don't see mucManagerSendPresence(Show.dnd).
Avatar
Alex #2
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Quote by Eric380:
I don't see mucManagerSendPresence(Show.dnd).

It does not exist, I'll add a function for this and upload  a new binary today.
For now you can use this code:

  1. public void SendPresence(Jid room, Show show)
  2. {
  3.     var pres = new Presence
  4.     {
  5.         To = room,
  6.         Show = show
  7.     };
  8.  
  9.     xmppClient.Send(pres);
  10. }

Alex
Avatar
Alex #3
Member since Feb 2003 · 4449 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
I have added this and uploaded version 1.4.5.3 to the latest binaries
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: