@@ -652,7 +652,7 @@ def test_misc4380_block_invite_local(self) -> None:
652652 self .bob ,
653653 AccountDataTypes .MSC4380_INVITE_PERMISSION_CONFIG ,
654654 {
655- "block_all " : True ,
655+ "default_action " : "block" ,
656656 },
657657 )
658658 )
@@ -670,16 +670,16 @@ def test_misc4380_block_invite_local(self) -> None:
670670 self .assertEqual (f .errcode , "ORG.MATRIX.MSC4155.M_INVITE_BLOCKED" )
671671
672672 @override_config ({"experimental_features" : {"msc4380_enabled" : True }})
673- def test_misc4380_non_bool_setting (self ) -> None :
674- """Test that `block_all ` being set to something non-booly is the same as False ."""
673+ def test_misc4380_non_string_setting (self ) -> None :
674+ """Test that `default_action ` being set to something non-stringy is the same as "accept" ."""
675675 room_id = self .helper .create_room_as (self .alice , tok = self .alice_token )
676676
677677 self .get_success (
678678 self .store .add_account_data_for_user (
679679 self .bob ,
680680 AccountDataTypes .MSC4380_INVITE_PERMISSION_CONFIG ,
681681 {
682- "block_all " : "True" ,
682+ "default_action " : 1 ,
683683 },
684684 )
685685 )
@@ -695,15 +695,15 @@ def test_misc4380_non_bool_setting(self) -> None:
695695
696696 @override_config ({"experimental_features" : {"msc4380_enabled" : False }})
697697 def test_msc4380_disabled_allow_invite_local (self ) -> None :
698- """Test that MSC4380 will block a user from being invited to a room """
698+ """Test that, when MSC4380 is not enabled, invites are accepted as normal """
699699 room_id = self .helper .create_room_as (self .alice , tok = self .alice_token )
700700
701701 self .get_success (
702702 self .store .add_account_data_for_user (
703703 self .bob ,
704704 AccountDataTypes .MSC4380_INVITE_PERMISSION_CONFIG ,
705705 {
706- "block_all " : True ,
706+ "default_action " : "block" ,
707707 },
708708 )
709709 )
@@ -728,7 +728,7 @@ def test_msc4380_block_invite_remote(self) -> None:
728728 self .store .add_account_data_for_user (
729729 self .bob ,
730730 AccountDataTypes .MSC4380_INVITE_PERMISSION_CONFIG ,
731- {"block_all " : True },
731+ {"default_action " : "block" },
732732 )
733733 )
734734
0 commit comments