@defer.inlineCallbacks
    def get_state_after_event(self, event):
        state = yield self.store.get_state_for_event(event.event_id)
        if event.is_state():
            state = state.copy()
            state[(event.type, event.state_key)] = event
        defer.returnValue(state)
Get the room state after the given event
dataset/ETHPy150Open matrix-org/synapse/synapse/handlers/sync.py/SyncHandler.get_state_after_event