#NEWLINE# def check_joined_room( self , sync_config , state_delta ) : #NEWLINE# #INDENT# '\n        Check if the user has just joined the given room (so should\n        be given the full state)\n\n        :param sync_config:\n        :param dict[(str,str), synapse.events.FrozenEvent] state_delta: the\n           difference in state since the last sync\n\n        :returns A deferred Tuple (state_delta, limited)\n        ' #NEWLINE# join_event = state_delta . get ( ( EventTypes . Member , sync_config . user . to_string ( ) ) , None ) #NEWLINE# if ( join_event is not None ) : #NEWLINE# #INDENT# if ( join_event . content [ 'membership' ] == Membership . JOIN ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# #UNINDENT# return False