Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions src/components/views/verification/VerificationShowSas.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ import { _t, _td } from '../../../languageHandler';
import {PendingActionSpinner} from "../right_panel/EncryptionInfo";
import AccessibleButton from "../elements/AccessibleButton";
import DialogButtons from "../elements/DialogButtons";
import { fixupColorFonts } from '../../../utils/FontManager';

function capFirst(s) {
return s.charAt(0).toUpperCase() + s.slice(1);
Expand All @@ -44,6 +45,13 @@ export default class VerificationShowSas extends React.Component {
};
}

componentWillMount() {
// As this component is also used before login (during complete security),
// also make sure we have a working emoji font to display the SAS emojis here.
// This is also done from LoggedInView.
fixupColorFonts();
}

onMatchClick = () => {
this.setState({ pending: true });
this.props.onDone();
Expand Down