synapse/storage/user_directory.py
def add_users_to_public_room(self, room_id, user_ids):
        """Add user to the list of users in public rooms

        Args:
            room_id (str): A room_id that all users are in that is world_readable
                or publically joinable
            user_ids (list(str)): Users to add
        """
        yield self._simple_insert_many(
            table="users_in_public_rooms",
            values=[
                {
                    "user_id": user_id,
                    "room_id": room_id,
                }
                for user_id in user_ids
            ],
            desc="add_users_to_public_room"
        )
        for user_id in user_ids:
            self.get_user_in_public_room.invalidate((user_id,))
Add user to the list of users in public rooms

        Args:
            room_id (str): A room_id that all users are in that is world_readable
                or publically joinable
            user_ids (list(str)): Users to add
        
Add user to the list of users in public rooms
Add user to the list of users in public rooms
def add_users_to_public_room(self, room_id, user_ids):
        yield self._simple_insert_many(
            table="users_in_public_rooms",
            values=[
                {
                    "user_id": user_id,
                    "room_id": room_id,
                }
                for user_id in user_ids
            ],
            desc="add_users_to_public_room"
        )
        for user_id in user_ids:
            self.get_user_in_public_room.invalidate((user_id,))
def add_users_to_public_room ( self , room_id , user_ids ) : yield self . _simple_insert_many ( table = "users_in_public_rooms" , values = [ { "user_id" : user_id , "room_id" : room_id , } for user_id in user_ids ] , desc = "add_users_to_public_room" ) for user_id in user_ids : self . get_user_in_public_room . invalidate ( ( user_id , ) )
Add user to the list of users in public rooms
Add user to the list of users in public rooms
"""Add user to the list of users in public rooms

        Args:
            room_id (str): A room_id that all users are in that is world_readable
                or publically joinable
            user_ids (list(str)): Users to add
        """
self
room_id
A room_id that all users are in that is world_readable
or publically joinable
A room_id that all users are in that is world_readable or publically joinable
user_ids
Users to add
Users to add