-
Couldn't load subscription status.
- Fork 42
fix(rcint-8093):show phone numbers in E.164 #944
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| name: lastCall.to.phoneNumber, | ||
| name: null, | ||
| status: lastCall.webphoneSession ? lastCall.webphoneSession.callStatus : null, | ||
| phoneNumber: lastCall.to.phoneNumber |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for the sake of performance, plz make sure that one and only one shape is given to the value of the _lastCallInfo
| status: lastCall.webphoneSession.callStatus, | ||
| }; | ||
| } else if (lastCalleeType === calleeTypes.unknow) { | ||
| _lastCallInfo = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
switch...case
since the condition only change by the value of lastCalleeType
| </div> | ||
| <div className={styles.callee_name}> | ||
| { | ||
| (lastCallInfo.calleeType === calleeTypes.conference) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(lastCallInfo.calleeType === calleeTypes.conference)
you have already did this as the isOnConferenCall
| </div> | ||
| ); | ||
|
|
||
| const currentCallTitle = nameMatches.length |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what if nameMatches is not a array?
| color: #303030; | ||
| float: left; | ||
| max-width: 43%; | ||
| max-width: 58%; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
as long as we fix the width of the avatar and the call status, then we don't need this 58%, let flex layout to do the job
| phoneNumber: lastCall.to.phoneNumber, | ||
| extraNum: 0, | ||
| }; | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return the value inside the case... directly, since this function is all about the_lastCallInfo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omit it, since we need to update the mutable data _lastCallInfo
No description provided.