From 313c3ea5d8fffdb852b2f596e7c74954f8654e84 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Wed, 28 Jul 2021 17:09:41 +0300 Subject: [PATCH] Settings / Background: Show error for huge wallpapers (#1335) --- src/util/getReadableErrorText.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/util/getReadableErrorText.ts b/src/util/getReadableErrorText.ts index 30055ecd4..ed10b42b8 100644 --- a/src/util/getReadableErrorText.ts +++ b/src/util/getReadableErrorText.ts @@ -61,6 +61,7 @@ const READABLE_ERROR_MESSAGES: Record = { CHANNELS_TOO_MUCH: 'You have joined too many channels/supergroups', USER_ALREADY_PARTICIPANT: 'You already in the group', SCHEDULE_DATE_INVALID: 'Invalid schedule date provided', + WALLPAPER_DIMENSIONS_INVALID: 'The wallpaper dimensions are invalid, please select another file', }; export default function getReadableErrorText(error: ApiError) {