def _update(self):
typing_users = [self._conversation.get_user(user_id)<EOL>for user_id, status in self._typing_statuses.items()<EOL>if status == hangups.TYPING_TYPE_STARTED]<EOL>displayed_names = [user.first_name for user in typing_users<EOL>if not user.is_self]<EOL>if displayed_names:<EOL><INDENT>typing_message = '<STR_LIT>'.format(<EOL>'<STR_LIT:U+002CU+0020>'.join(sorted(displayed_names)),<EOL>'<STR_LIT>' if len(displayed_names) == <NUM_LIT:1> else '<STR_LIT>'<EOL>)<EOL><DEDENT>else:<EOL><INDENT>typing_message = '<STR_LIT>'<EOL><DEDENT>if not self._is_connected:<EOL><INDENT>self._widget.set_text("<STR_LIT>")<EOL><DEDENT>elif self._message is not None:<EOL><INDENT>self._widget.set_text(self._message)<EOL><DEDENT>else:<EOL><INDENT>self._widget.set_text(typing_message)<EOL><DEDENT>
Update status text.