

def get_tags_for_room(self, user_id, room_id):
    'Get all the tags for the given room\n        Args:\n            user_id(str): The user to get tags for\n            room_id(str): The room to get tags for\n        Returns:\n            A deferred list of string tags.\n        '
    return self._simple_select_list(table='room_tags', keyvalues={
        'user_id': user_id,
        'room_id': room_id,
    }, retcols=('tag', 'content'), desc='get_tags_for_room').addCallback((lambda rows: {row['tag']: json.loads(row['content']) for row in rows}))

dataset/ETHPy150Open matrix-org/synapse/synapse/storage/tags.py TagsStore.get_tags_for_room/original