bug fixes

This commit is contained in:
or-else
2022-06-02 09:27:54 -07:00
parent feb2e4b3e3
commit 3af0b4409c
8 changed files with 18 additions and 17 deletions
+1 -1
View File
@@ -30,7 +30,7 @@ class BadgeList extends React.PureComponent {
if (this.props.trustedBadges && this.props.trustedBadges.length > 0) {
badges = [];
this.props.trustedBadges.map((b) => {
const comment = formatMessage(messages['badge_' + b]);
const comment = this.props.short ? null : formatMessage(messages['badge_' + b]);
const style = 'material-icons ' + b + '-color';
badges.push(<div className="trusted-badge" key={b}><i className={style}>{icon_mapping[b] || b}</i> {comment}</div>);
});
+3 -5
View File
@@ -12,7 +12,7 @@ import { clipStr } from '../lib/utils.js'
const RING_SOUND = new Audio('audio/call-in.m4a');
export default class IncomingCall extends React.Component {
export default class CallIncoming extends React.Component {
constructor(props) {
super(props);
@@ -128,10 +128,8 @@ export default class IncomingCall extends React.Component {
topic={this.props.topic}
title={this.state.fullName} />
</div>
<div className="caller-name">{clipStr(this.state.fullName, MAX_PEER_TITLE_LENGTH)}</div>
</div>
<div className="group incoming-call-badges">
<BadgeList trustedBadges={this.state.trustedBadges} />
<div className="caller-name">{clipStr(this.state.fullName, MAX_PEER_TITLE_LENGTH)}
<BadgeList short={true} trustedBadges={this.state.trustedBadges} /></div>
</div>
<div className="controls">
{this.props.callState == CALL_STATE_INCOMING_RECEIVED ?