mirror of
				https://gitlab.com/animath/si/plateforme-corres2math.git
				synced 2025-11-04 16:42:33 +01:00 
			
		
		
		
	Compare commits
	
		
			8 Commits
		
	
	
		
			improvemen
			...
			4c9e63be3d
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 
						 | 
					4c9e63be3d | ||
| 
						 | 
					01f6d74cae | ||
| 
						 | 
					a82c6b4673 | ||
| 
						 | 
					4ee5ac309d | ||
| 
						 | 
					24e1cf3845 | ||
| 
						 | 
					91640f8fb1 | ||
| 
						 | 
					ce048a30d6 | ||
| 
						 | 
					d104c2ff1f | 
@@ -88,5 +88,7 @@ class Command(BaseCommand):
 | 
				
			|||||||
                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
					                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
				
			||||||
            Matrix.set_room_power_level("#faq:correspondances-maths.fr",
 | 
					            Matrix.set_room_power_level("#faq:correspondances-maths.fr",
 | 
				
			||||||
                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
					                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
				
			||||||
 | 
					            Matrix.set_room_power_level("#je-cherche-une-equipe:correspondances-maths.fr",
 | 
				
			||||||
 | 
					                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
				
			||||||
            Matrix.set_room_power_level("#flood:correspondances-maths.fr",
 | 
					            Matrix.set_room_power_level("#flood:correspondances-maths.fr",
 | 
				
			||||||
                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
					                                        f"@{admin.matrix_username}:correspondances-maths.fr", 95)
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -48,9 +48,9 @@ def invite_to_public_rooms(instance: Registration, created: bool, **_):
 | 
				
			|||||||
    """
 | 
					    """
 | 
				
			||||||
    When a user got registered, automatically invite the Matrix user into public rooms.
 | 
					    When a user got registered, automatically invite the Matrix user into public rooms.
 | 
				
			||||||
    """
 | 
					    """
 | 
				
			||||||
    if not created:
 | 
					    if created:
 | 
				
			||||||
        Matrix.invite("#annonces:correspondances-maths.fr", f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
					        Matrix.invite("#annonces:correspondances-maths.fr", f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
				
			||||||
        Matrix.invite("#faq:correspondances-maths.fr", f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
					        Matrix.invite("#faq:correspondances-maths.fr", f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
				
			||||||
        Matrix.invite("#je-cherche-une-equip:correspondances-maths.fr",
 | 
					        Matrix.invite("#je-cherche-une-equipe:correspondances-maths.fr",
 | 
				
			||||||
                      f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
					                      f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
				
			||||||
        Matrix.invite("#flood:correspondances-maths.fr", f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
					        Matrix.invite("#flood:correspondances-maths.fr", f"@{instance.matrix_username}:correspondances-maths.fr")
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user