-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Set default federate by settings #2199
Set default federate by settings #2199
Conversation
Can one of the admins verify this patch? |
2 similar comments
Can one of the admins verify this patch? |
Can one of the admins verify this patch? |
@matrixbot ok to test |
I don't think this should be touching anything in |
Unfortunattely, I think is required for this reasons:
|
TODO: check the coding style |
25f41c9
to
3b01abb
Compare
I wonder if there is any change to promote this change into the master stream. Tahnks in advance. |
@erikjohnston can you take a look again when you're back from hol please? |
I appreciate this PRs existence. We were just "hit" by a A couple things about initial assumptions I had as a homeserver operator:
This I think there is a strong case for many homeserver operators to have Please @ara4n bring this up with the team about their initial assumptions for homeserver operation. I cannot believe my assumptions we're unique to just me. From what you stated, |
* Added room_federate_default setting * Added room_federate_default parameter * The default m.federate value of the rooms can be modified in the config file * Default behavior of _can_federate is set with room_federate_default * self.hs.config.room_federate_default is passed as arg in Auth.check() * check function signature modified: receives room_federate_default * _can_federate function signature modified: receives room_federate_default * is_membership_change_allowed function signature modified: receives room_federate_default * room_federate_default only applies for events from the local hostname. Server only uses the room_federate_default value for events from the local server. This is a backguard compatibility check. * Federate is True for Direct Chat with external users
3b01abb
to
4a5b773
Compare
I'm sorry this has been left to bitrot; however it's now quite out of date and the other PRs mentioned in the description no longer seem relevant. I'm going to close it for now but if you'd like to bring it up to date that would be great! |
This change allows change the default value for
m.federate
value during the create action. Useful for enviroments where you preferm.federate = False
asdefault
choice for the created rooms.In addition, the patch manage the situation of 1-to-1 rooms creation where the other peer is from a external domain. In this case, the room is created as
m.federate=True
in order to avoid break the interaction with external servers.This PR is embraces the following SPEC: https://docs.google.com/document/d/14zqsbwl5KKil-bB8w2HMhidBVmFkP9Q7EQKFwKIIfZc/edit#heading=h.eipip5qhqo0d
Other PR in matrix-react-sdk and matrix-js-sdk and riot-web are envolved
Related PR:
Signed-off-by: Pablo Saavedra psaavedra@igalia.com