#NEWLINE# @ defer . inlineCallbacks #NEWLINE# @ log_function #NEWLINE# def on_backfill_request( self , origin , room_id , pdu_list , limit ) : #NEWLINE# #INDENT# in_room = ( yield self . auth . check_host_in_room ( room_id , origin ) ) #NEWLINE# if ( not in_room ) : #NEWLINE# #INDENT# raise AuthError ( 403 , 'Host not in room.' ) #NEWLINE# #UNINDENT# events = ( yield self . store . get_backfill_events ( room_id , pdu_list , limit ) ) #NEWLINE# events = ( yield self . _filter_events_for_server ( origin , limit , events ) ) #NEWLINE# defer . returnValue ( events )