#NEWLINE# @ defer . inlineCallbacks #NEWLINE# def on_POST( self , request , room_id , receipt_type , event_id ) : #NEWLINE# #INDENT# requester = ( yield self . auth . get_user_by_req ( request ) ) #NEWLINE# if ( receipt_type != 'm.read' ) : #NEWLINE# #INDENT# raise SynapseError ( 400 , "Receipt type must be 'm.read'" ) #NEWLINE# #UNINDENT# ( yield self . presence_handler . bump_presence_active_time ( requester . user ) ) #NEWLINE# ( yield self . receipts_handler . received_client_receipt ( room_id , requester , user_id = requester . user . to_string ( ) , event_id = event_id ) ) #NEWLINE# defer . returnValue ( ( 200 , { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) )