Skip to content

Conversation

@renatobecker
Copy link
Contributor

@renatobecker renatobecker commented Jan 8, 2021

Proposed changes (including videos or screenshots)

After changes made on #19931, the Livechat.RegisterGuest method started removing properties from the visitor inappropriately. The properties that did not receive value were removed from the object.
Those changes were made to support the new Contact Form, but now the form has its own method to deal with Contact data so those changes are no longer necessary.

Issue(s)

Steps to test or reproduce

Further comments

@renatobecker renatobecker added this to the 3.10.2 milestone Jan 8, 2021
@renatobecker renatobecker changed the title [FIX] Livechat.RegisterGuest method removing undefined data [FIX] Livechat.RegisterGuest method removing unset fields Jan 8, 2021
@renatobecker renatobecker marked this pull request as draft January 8, 2021 22:06
@renatobecker renatobecker modified the milestones: 3.10.2, 3.11.0 Jan 11, 2021
@renatobecker renatobecker marked this pull request as ready for review January 11, 2021 21:02
@renatobecker renatobecker requested review from rafaelblink and removed request for rafaelblink January 11, 2021 21:02
<Field.Label>{t('Email')}</Field.Label>
<Field.Row>
<TextInput error={emailError} flexGrow={1} value={email} onChange={handleEmail} addon={<Icon name='mail' size='x20'/>}/>
<TextInput onBlur={checkEmailExists} error={emailError} flexGrow={1} value={email} onChange={handleEmail} addon={<Icon name='mail' size='x20'/>}/>
Copy link
Contributor Author

@renatobecker renatobecker Jan 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I set an email and remove it, I get this:

Screen Shot 2021-01-12 at 12 20 04

@renatobecker renatobecker merged commit cb8f275 into develop Jan 12, 2021
@renatobecker renatobecker deleted the omnichannel/fix-register-guest-method branch January 12, 2021 21:03
gabriellsh added a commit that referenced this pull request Jan 13, 2021
…info_page

* 'develop' of github.com:RocketChat/Rocket.Chat:
  [FIX] Room's list showing all rooms with same name (#20176)
  Regression: Change sort icon (#20177)
  [FIX] Wrong userId when open own user profile (#20181)
  [FIX] Livechat.RegisterGuest method removing unset fields (#20124)
gabriellsh added a commit that referenced this pull request Jan 14, 2021
…rewrite-announcement

* 'develop' of github.com:RocketChat/Rocket.Chat: (23 commits)
  Regression: Info Page Icon style and usage graph breaking (#20180)
  Chore: Change console.warning() to console.warn() (#20200)
  [FIX] Room's list showing all rooms with same name (#20176)
  Regression: Change sort icon (#20177)
  [FIX] Wrong userId when open own user profile (#20181)
  [FIX] Livechat.RegisterGuest method removing unset fields (#20124)
  [IMPROVE] Rewrite Prune Messages as React component (#19900)
  [FIX] Change header's favorite icon to filled star (#20174)
  [FIX] Initial values update on Account Preferences  (#19938)
  [FIX] Unable to reset password by Email if upper case character is present (#19643)
  [FIX] Video call message not translated (#18722)
  [NEW] Server Info page (#19517)
  [IMPROVE] Title for user avatar buttons (#20083)
  [FIX] Admin User Info email verified status (#20110)
  [IMPROVE] Tooltip added for Kebab menu on chat header (#20116)
  [FIX] Translate keyword for 'Showing results of' in tables (#20134)
  [FIX] Markdown added for Header Room topic (#20021)
  [FIX] Status circle in profile section (#20016)
  [FIX] Normalize messages for users in endpoint chat.getStarredMessages (#19962)
  [FIX] minWidth in FileIcon to prevent layout to broke (#19942)
  ...
@sampaiodiego sampaiodiego mentioned this pull request Feb 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants