Remove redundant bool casting

pull/1062/head
Vincent 5 years ago
parent 9229ee7482
commit 9c9b8e08ef

@ -1339,7 +1339,7 @@
// In future, we may be able to unsend private messages also
// isServerDeletable also defined in ConversationHeader.tsx for
// future reference
const isServerDeletable = !!isPublic;
const isServerDeletable = isPublic;
const warningMessage = (() => {
if (isPublic) {

@ -363,7 +363,7 @@ export class ConversationHeader extends React.Component<Props> {
i18n,
} = this.props;
const isServerDeletable = !!isPublic;
const isServerDeletable = isPublic;
const deleteMessageButtonText = i18n(
isServerDeletable ? 'unsend' : 'delete'
);

Loading…
Cancel
Save