#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def get_event( self , user , event_id ) : #NEWLINE# #INDENT# 'Retrieve a single specified event.\n\n        Args:\n            user (synapse.types.UserID): The user requesting the event\n            event_id (str): The event ID to obtain.\n        Returns:\n            dict: An event, or None if there is no event matching this ID.\n        Raises:\n            SynapseError if there was a problem retrieving this event, or\n            AuthError if the user does not have the rights to inspect this\n            event.\n        ' #NEWLINE# event = ( yield self . store . get_event ( event_id ) ) #NEWLINE# if ( not event ) : #NEWLINE# #INDENT# defer . returnValue ( None ) #NEWLINE# return #NEWLINE# #UNINDENT# if hasattr ( event , 'room_id' ) : #NEWLINE# #INDENT# ( yield self . auth . check_joined_room ( event . room_id , user . to_string ( ) ) ) #NEWLINE# #UNINDENT# defer . returnValue ( event )