Create group link previews; don't open Signal links in browser first; allow ephemeral download of previously-error'd pack
This commit is contained in:
parent
f832b018fc
commit
e10ae03bb7
8 changed files with 338 additions and 33 deletions
|
@ -12,6 +12,7 @@ const linkify = LinkifyIt();
|
|||
module.exports = {
|
||||
findLinks,
|
||||
getDomain,
|
||||
isGroupLink,
|
||||
isLinkSafeToPreview,
|
||||
isLinkSneaky,
|
||||
isStickerPack,
|
||||
|
@ -34,6 +35,10 @@ function isStickerPack(link) {
|
|||
return (link || '').startsWith('https://signal.art/addstickers/');
|
||||
}
|
||||
|
||||
function isGroupLink(link) {
|
||||
return (link || '').startsWith('https://signal.group/');
|
||||
}
|
||||
|
||||
function findLinks(text, caretLocation) {
|
||||
const haveCaretLocation = isNumber(caretLocation);
|
||||
const textLength = text ? text.length : 0;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue