Merge pull request #3529 from nextcloud/bugfix/noid/fix-talk-integration

Fix talk integration
This commit is contained in:
Julius Härtl
2022-01-14 22:11:04 +01:00
committed by GitHub

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, {
props: {
title: shortenedMessage, title: shortenedMessage,
description: message + '\n\n' + '[' description: message + '\n\n' + '['
+ t('deck', 'Message from {author} in {conversationName}', { author: actorDisplayName, conversationName }) + t('deck', 'Message from {author} in {conversationName}', {
+ '](' + generateUrl('/call/' + conversationToken) + ')', 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')