#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def get_state_after_event( self , event ) : #NEWLINE# #INDENT# '\n        Get the room state after the given event\n\n        :param synapse.events.EventBase event: event of interest\n        :return: A Deferred map from ((type, state_key)->Event)\n        ' #NEWLINE# state = ( yield self . store . get_state_for_event ( event . event_id ) ) #NEWLINE# if event . is_state ( ) : #NEWLINE# #INDENT# state = state . copy ( ) #NEWLINE# state [ ( event . type , event . state_key ) ] = event #NEWLINE# #UNINDENT# defer . returnValue ( state )