Alert internal users if first message on websocket is repeated
This commit is contained in:
parent
d0b8a2991f
commit
cd2bb537fa
8 changed files with 144 additions and 0 deletions
|
@ -122,6 +122,8 @@ function getToast(toastType: ToastType): AnyToast {
|
|||
return { toastType: ToastType.MaxAttachments };
|
||||
case ToastType.MessageBodyTooLong:
|
||||
return { toastType: ToastType.MessageBodyTooLong };
|
||||
case ToastType.MessageLoop:
|
||||
return { toastType: ToastType.MessageLoop };
|
||||
case ToastType.OriginalMessageNotFound:
|
||||
return { toastType: ToastType.OriginalMessageNotFound };
|
||||
case ToastType.PinnedConversationsFull:
|
||||
|
|
|
@ -385,6 +385,20 @@ export function renderToast({
|
|||
return <Toast onClose={hideToast}>{i18n('icu:messageBodyTooLong')}</Toast>;
|
||||
}
|
||||
|
||||
if (toastType === ToastType.MessageLoop) {
|
||||
return (
|
||||
<Toast
|
||||
onClose={hideToast}
|
||||
toastAction={{
|
||||
label: i18n('icu:Toast__ActionLabel--SubmitLog'),
|
||||
onClick: onShowDebugLog,
|
||||
}}
|
||||
>
|
||||
{i18n('icu:messageLoop')}
|
||||
</Toast>
|
||||
);
|
||||
}
|
||||
|
||||
if (toastType === ToastType.OriginalMessageNotFound) {
|
||||
return (
|
||||
<Toast onClose={hideToast}>{i18n('icu:originalMessageNotFound')}</Toast>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue