#NEWLINE# def add_user_from_conv_part( self , conv_part ) : #NEWLINE# #INDENT# 'Add or upgrade User from ConversationParticipantData.' #NEWLINE# user_ = User . from_conv_part_data ( conv_part , self . _self_user . id_ ) #NEWLINE# existing = self . _user_dict . get ( user_ . id_ ) #NEWLINE# if ( user_ is None ) : #NEWLINE# #INDENT# logging . warning ( 'Adding fallback User with {} name "{}": {}' . format ( user_ . name_type . name . lower ( ) , user_ . full_name , user_ ) ) #NEWLINE# self . _user_dict [ user_ . id_ ] = user_ #NEWLINE# return user_ #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# existing . upgrade_name ( user_ ) #NEWLINE# return existing