{"action":"created","issue":{"url":"https://api.github.com/repos/processone/ejabberd/issues/1389","repository_url":"https://api.github.com/repos/processone/ejabberd","labels_url":"https://api.github.com/repos/processone/ejabberd/issues/1389/labels{/name}","comments_url":"https://api.github.com/repos/processone/ejabberd/issues/1389/comments","events_url":"https://api.github.com/repos/processone/ejabberd/issues/1389/events","html_url":"https://github.com/processone/ejabberd/issues/1389","id":191084156,"number":1389,"title":"Custom Elements in MUC Presence","user":{"login":"tolgatanriverdi","id":1306155,"avatar_url":"https://avatars.githubusercontent.com/u/1306155?v=3","gravatar_id":"","url":"https://api.github.com/users/tolgatanriverdi","html_url":"https://github.com/tolgatanriverdi","followers_url":"https://api.github.com/users/tolgatanriverdi/followers","following_url":"https://api.github.com/users/tolgatanriverdi/following{/other_user}","gists_url":"https://api.github.com/users/tolgatanriverdi/gists{/gist_id}","starred_url":"https://api.github.com/users/tolgatanriverdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolgatanriverdi/subscriptions","organizations_url":"https://api.github.com/users/tolgatanriverdi/orgs","repos_url":"https://api.github.com/users/tolgatanriverdi/repos","events_url":"https://api.github.com/users/tolgatanriverdi/events{/privacy}","received_events_url":"https://api.github.com/users/tolgatanriverdi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-11-22T18:14:29Z","updated_at":"2016-11-23T16:15:18Z","closed_at":null,"body":"Hi\r\n\r\nWe're implementing an xmpp client and we are using ejabberd as xmpp server. We've implemented muc (multi user chat) functionalities to our app and everything is working fine , only thing we are having problem is a member to leave the group permanently.\r\n\r\nI know in XEP 45 says if you want to leave the group just send the unavailable presence to room but this doesnt work in our case because our admins add users of the group to memberList by sending the below xml:\r\n\r\n```\r\n<iq from='crone1@shakespeare.lit/desktop'\r\n    id='member1'\r\n    to='coven@chat.shakespeare.lit'\r\n    type='set'>\r\n  <query xmlns='http://jabber.org/protocol/muc#admin'>\r\n    <item affiliation='member'\r\n          jid='hag66@shakespeare.lit'\r\n          nick='thirdwitch'/>\r\n  </query>\r\n</iq>\r\n```\r\n\r\nSo the members of the group can see the other members and moderators in group's member list(Like whatsapp)\r\n\r\nWhen a user leaves the room it only sends unavailable presence to room , so this doesnt remove her/his from room's member list. I want to remove the user from members list when they leave the room(Leaving room is a specific button in our application like whatsapp)\r\nFor doing this , I would like to add an extension element to presence and when this element sent to server, ejabberd should remove the user from group's member list.\r\nBut I dont know how to do it with ejabberd. \r\nIs something like that possible ? If it is how?\r\n\r\nThanks"},"comment":{"url":"https://api.github.com/repos/processone/ejabberd/issues/comments/262559949","html_url":"https://github.com/processone/ejabberd/issues/1389#issuecomment-262559949","issue_url":"https://api.github.com/repos/processone/ejabberd/issues/1389","id":262559949,"user":{"login":"tolgatanriverdi","id":1306155,"avatar_url":"https://avatars.githubusercontent.com/u/1306155?v=3","gravatar_id":"","url":"https://api.github.com/users/tolgatanriverdi","html_url":"https://github.com/tolgatanriverdi","followers_url":"https://api.github.com/users/tolgatanriverdi/followers","following_url":"https://api.github.com/users/tolgatanriverdi/following{/other_user}","gists_url":"https://api.github.com/users/tolgatanriverdi/gists{/gist_id}","starred_url":"https://api.github.com/users/tolgatanriverdi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tolgatanriverdi/subscriptions","organizations_url":"https://api.github.com/users/tolgatanriverdi/orgs","repos_url":"https://api.github.com/users/tolgatanriverdi/repos","events_url":"https://api.github.com/users/tolgatanriverdi/events{/privacy}","received_events_url":"https://api.github.com/users/tolgatanriverdi/received_events","type":"User","site_admin":false},"created_at":"2016-11-23T16:15:18Z","updated_at":"2016-11-23T16:15:18Z","body":"So how can I understand the difference between a member leaving the room because he/she is becoming offline and a member actually want to abandon the room. Is this iq working for the person who actually wants to abandon the group?\r\n\r\n```\r\n<iq type='set' to='sala1@conference.localhost'>\r\n  <query xmlns='http://jabber.org/protocol/muc#admin'>\r\n    <item nick='user2' affiliation='none'/>\r\n  </query>\r\n</iq>\r\n```"}}
{"actor":{"display_login":"tolgatanriverdi"}}