-
Committer:
Tarmac
-
Author(s):
Chris Davidson
-
Date:
2013-09-06 14:05:56 UTC
-
mfrom:
(36.2.6 endroid-memberkick)
-
Revision ID:
tarmac-20130906140556-nv7wgy1qzq6glix4
Add support for users to be kicked from rooms if they are not members of the room.
This is needed because some webex servers don't support mamber-only rooms.
As part of this:
* Add a new JID class in usermanagement with the aim of this become the common representation of JIDs (users and rooms)
* Remove any use of parse that I came accross (it's not needed)
* Make the the set_available methods take this new JID object as an argument.
* Override set_avail and unavail in the Room roster class to support the kicking (also means more accurate debugging can be added)
* Add a tiny kick method on the UM object and migrate the other use of kick to this.
* Rename um.JOIN_ATTEMPTS_MAX so its less shouty
* Acknowledge that it is not ideal that UM is reading roomowner config.
* Allow a rooms member list to be specified in the roomowner section of config [Though more thought needed on this e.g. how EnDroid should support joining rooms it doesn't own]
* Remove unnecessary set_registration_list method on UM (it was only called from UM methods which can call the roster method directly).