Removes ToastView, new React toast

This commit is contained in:
Josh Perez 2021-09-22 16:59:54 -04:00 committed by GitHub
parent 024a3521e1
commit e6d952d105
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
89 changed files with 1854 additions and 676 deletions

View file

@ -17,6 +17,8 @@ import { parseIntOrThrow } from './parseIntOrThrow';
import * as RemoteConfig from '../RemoteConfig';
import { Address } from '../types/Address';
import { QualifiedAddress } from '../types/QualifiedAddress';
import { ToastDecryptionError } from '../components/ToastDecryptionError';
import { showToast } from './showToast';
import { ConversationModel } from '../models/conversations';
import {
@ -131,10 +133,9 @@ function maybeShowDecryptionToast(logId: string) {
}
log.info(`maybeShowDecryptionToast/${logId}: Showing decryption error toast`);
window.Whisper.ToastView.show(
window.Whisper.DecryptionErrorToast,
document.getElementsByClassName('conversation-stack')[0]
);
showToast(ToastDecryptionError, {
onShowDebugLog: () => window.showDebugLog(),
});
}
export async function onDecryptionError(