pull/1312/head
Konstantin Ullrich 5 years ago
parent 86f8fe54ae
commit 2f35d9d2a6

@ -605,13 +605,13 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
const currentModel = window.ConversationController.get(blockedNumber); const currentModel = window.ConversationController.get(blockedNumber);
if (currentModel) { if (currentModel) {
title = title =
currentModel.getProfileName() || currentModel.getProfileName() ||
currentModel.getName() || currentModel.getName() ||
window.i18n('anonymous'); window.i18n('anonymous');
} else { } else {
title = window.i18n('anonymous'); title = window.i18n('anonymous');
} }
title = `${title} ${window.shortenPubkey(blockedNumber)}`; title = `${title} ${window.shortenPubkey(blockedNumber)}`;
results.push({ results.push({
@ -629,7 +629,7 @@ export class SettingsView extends React.Component<SettingsViewProps, State> {
if (currentModel) { if (currentModel) {
await currentModel.unblock(); await currentModel.unblock();
} else { } else {
await BlockedNumberController.unblock(blockedNumber) await BlockedNumberController.unblock(blockedNumber);
} }
ToastUtils.push({ ToastUtils.push({
title: window.i18n('unblocked'), title: window.i18n('unblocked'),

Loading…
Cancel
Save