Removes ToastView, new React toast
This commit is contained in:
parent
024a3521e1
commit
e6d952d105
89 changed files with 1854 additions and 676 deletions
|
@ -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(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue