From c6f8b22837c4e39595dfe8466b4618cb98b6f0e9 Mon Sep 17 00:00:00 2001 From: Joas Schilling Date: Wed, 12 Jan 2022 16:20:31 +0100 Subject: [PATCH] Fix talk integration title and description where not populated and also opposed to documentation the link is not absolute Signed-off-by: Joas Schilling --- src/init-talk.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/init-talk.js b/src/init-talk.js index 23e812401..3720d092d 100644 --- a/src/init-talk.js +++ b/src/init-talk.js @@ -49,10 +49,15 @@ window.addEventListener('DOMContentLoaded', () => { const shortenedMessage = shortenedMessageCandidate === '' ? message.substr(0, 255) : shortenedMessageCandidate try { await buildSelector(CardCreateDialog, { - title: shortenedMessage, - description: message + '\n\n' + '[' - + t('deck', 'Message from {author} in {conversationName}', { author: actorDisplayName, conversationName }) - + '](' + generateUrl('/call/' + conversationToken) + ')', + props: { + title: shortenedMessage, + description: message + '\n\n' + '[' + + t('deck', 'Message from {author} in {conversationName}', { + author: actorDisplayName, + conversationName, + }) + + '](' + window.location.protocol + '//' + window.location.host + generateUrl('/call/' + conversationToken) + ')', + }, }) } catch (e) { console.debug('Card creation dialog was canceled')