From b4d747f5f394137d3cf32417b4978067c94e9d45 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Mon, 20 Dec 2021 10:21:51 +0400 Subject: [PATCH] Fix rendering links in shared media --- .env | 4 ++-- src/lib/richtextprocessor.ts | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.env b/.env index 69b6934f..1cc9e0fb 100644 --- a/.env +++ b/.env @@ -1,5 +1,5 @@ API_ID=1025907 API_HASH=452b0359b988148995f22ff0f4229750 VERSION=1.0.0 -VERSION_FULL=1.0.0 (46) -BUILD=46 +VERSION_FULL=1.0.0 (47) +BUILD=47 diff --git a/src/lib/richtextprocessor.ts b/src/lib/richtextprocessor.ts index 19916ebe..89012843 100644 --- a/src/lib/richtextprocessor.ts +++ b/src/lib/richtextprocessor.ts @@ -923,6 +923,7 @@ namespace RichTextProcessor { } export function getAbbreviation(str: string, onlyFirst = false) { + if(!str) return ''; const splitted = str.trim().split(' '); if(!splitted[0]) return '';