Fix rendering links in shared media

This commit is contained in:
morethanwords 2021-12-20 10:21:51 +04:00
parent c850e23c7f
commit b4d747f5f3
2 changed files with 3 additions and 2 deletions

4
.env
View File

@ -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

View File

@ -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 '';