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