'Get all the client account_data for a user for a room.
Args:
user_id(str): The user to get the account_data for.
room_id(str): The room to get the account_data for.
Returns:
A deferred dict of the room account_data'

def get_account_data_for_room(self, user_id, room_id):

    def get_account_data_for_room_txn(txn):
        rows = self._simple_select_list_txn(txn, 'room_account_data', {'user_id': user_id, 'room_id': room_id}, ['account_data_type', 'content'])
        return {row['account_data_type']: json.loads(row['content']) for row in rows}
    return self.runInteraction('get_account_data_for_room', get_account_data_for_room_txn)
