Not logged in. · Lost password · Register
Forum: MatriX RSS
Avatar
Suvitruf #1
Member since Sep 2015 · 10 posts
Group memberships: Members
Show profile · Link to this post
Subject: Didn't receive any message after revocation
When admin revoked user membership, user didn't receive any messages about it. How can I handle revocation for members only room?
Avatar
Alex #2
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
Revoke Membership is documented here:
http://xmpp.org/extensions/xep-0045.html#revokemember

As you can see your server should send out presence package with the updated affiliation.
It looks like the following:

  1. <presence
  2.     from='coven@chat.shakespeare.lit/thirdwitch'
  3.     to='crone1@shakespeare.lit/desktop'>
  4.  <x xmlns='http://jabber.org/protocol/muc#user'>
  5.     <item affiliation='none'
  6.           jid='hag66@shakespeare.lit/pda'
  7.           role='participant'/>
  8.  </x>
  9. </presence>
Avatar
Suvitruf #3
Member since Sep 2015 · 10 posts
Group memberships: Members
Show profile · Link to this post
Should ejabberd send this message with default config?

And, how can I handle this message using Matrix? For now I didn't receive this message in OnPresence or OnMessage events of XmppClient.
Avatar
Alex #4
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
yes, every server should send this my default.
Its a presence packet, so you get it of course in an OnPresence handler.

Alex
Avatar
Suvitruf #5
Member since Sep 2015 · 10 posts
Group memberships: Members
Show profile · Link to this post
Should I specify any special args in room creation, like muc#roomconfig_presencebroadcast for this?
Avatar
Alex #6
Member since Feb 2003 · 4297 posts · Location: Germany
Group memberships: Administrators, Members
Show profile · Link to this post
this should not be required, this is a default feature and every server should broadcast the updates by default.
But this can depend also on your room config, default config and server config. So if you don't get them consult your server vendor or the documentation.

Alex
Avatar
Suvitruf #7
Member since Sep 2015 · 10 posts
Group memberships: Members
Show profile · Link to this post
Will check my configs.

Big thanks for fast response )
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