Fix talk integration

title and description where not populated and also opposed to documentation the link is not absolute

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2022-01-12 16:20:31 +01:00
committed by backportbot[bot]
parent a3cdd5e19d
commit c6f8b22837

View File

@@ -49,10 +49,15 @@ window.addEventListener('DOMContentLoaded', () => {
const shortenedMessage = shortenedMessageCandidate === '' ? message.substr(0, 255) : shortenedMessageCandidate const shortenedMessage = shortenedMessageCandidate === '' ? message.substr(0, 255) : shortenedMessageCandidate
try { try {
await buildSelector(CardCreateDialog, { await buildSelector(CardCreateDialog, {
title: shortenedMessage, props: {
description: message + '\n\n' + '[' title: shortenedMessage,
+ t('deck', 'Message from {author} in {conversationName}', { author: actorDisplayName, conversationName }) description: message + '\n\n' + '['
+ '](' + generateUrl('/call/' + conversationToken) + ')', + t('deck', 'Message from {author} in {conversationName}', {
author: actorDisplayName,
conversationName,
})
+ '](' + window.location.protocol + '//' + window.location.host + generateUrl('/call/' + conversationToken) + ')',
},
}) })
} catch (e) { } catch (e) {
console.debug('Card creation dialog was canceled') console.debug('Card creation dialog was canceled')