Show internal error toast on CDS errors

This commit is contained in:
Fedor Indutny 2022-08-30 17:03:42 -07:00 committed by GitHub
parent 39354b11b7
commit 7632f31cf2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 142 additions and 81 deletions

View file

@ -24,9 +24,9 @@ import type { ToastConversationMarkedUnread } from '../components/ToastConversat
import type { ToastConversationUnarchived } from '../components/ToastConversationUnarchived';
import type { ToastDangerousFileType } from '../components/ToastDangerousFileType';
import type {
ToastDecryptionError,
ToastPropsType as ToastDecryptionErrorPropsType,
} from '../components/ToastDecryptionError';
ToastInternalError,
ToastPropsType as ToastInternalErrorPropsType,
} from '../components/ToastInternalError';
import type { ToastDeleteForEveryoneFailed } from '../components/ToastDeleteForEveryoneFailed';
import type { ToastExpired } from '../components/ToastExpired';
import type {
@ -78,8 +78,8 @@ export function showToast(Toast: typeof ToastConversationMarkedUnread): void;
export function showToast(Toast: typeof ToastConversationUnarchived): void;
export function showToast(Toast: typeof ToastDangerousFileType): void;
export function showToast(
Toast: typeof ToastDecryptionError,
props: ToastDecryptionErrorPropsType
Toast: typeof ToastInternalError,
props: ToastInternalErrorPropsType
): void;
export function showToast(Toast: typeof ToastDeleteForEveryoneFailed): void;
export function showToast(Toast: typeof ToastExpired): void;