Browse Source

Fix rendering links in shared media

master
morethanwords 3 years ago
parent
commit
b4d747f5f3
  1. 4
      .env
  2. 1
      src/lib/richtextprocessor.ts

4
.env

@ -1,5 +1,5 @@ @@ -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

1
src/lib/richtextprocessor.ts

@ -923,6 +923,7 @@ namespace RichTextProcessor { @@ -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 '';

Loading…
Cancel
Save