# Добавление кнопки в чат для звонков Jitsi

**URL:** https://meta.discourse.org/t/putting-a-button-into-chat-for-jitsi-calls/241000
**Category:** Feature
**Tags:** chat, completed, jitsi-video
**Created:** [05.Октябрь.2022 10:01:04 UTC](https://meta.discourse.org/t/putting-a-button-into-chat-for-jitsi-calls/241000 "2022-10-05T10:01:04Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![nathank](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/nathank/32/290039_2.png) [@nathank](https://meta.discourse.org/u/nathank)
#### Post date: [23.Январь.2024 03:46:59 UTC](https://meta.discourse.org/t/putting-a-button-into-chat-for-jitsi-calls/241000/4 "2024-01-23T03:46:59Z")

</div>

У нас сейчас есть PR по этому вопросу:

> <https://github.com/discourse/discourse-jitsi/pull/22>
>
> \## Changes
> 
> \- Added integration into the Discourse Chat feature
> \- Open meetin…g links in a new tab rather than redirecting the current
> \- Separated templating and javascript (Tooling for .gjs seems not well supported and features like \`or\` helpers didn't seem to work with it)
> \- Added new default options
> 
> \> This is part of a two part pull request which will likely arrive some time after if you choose to accept these changes. The upcoming pull request adds new features such a seperate header icon for creating meetings and changes to how the settings are layed out. But I thought it best to not include those in this pull request as they might deviated too much from your initial ideas and could slow down the process of reviewing this
> 
> \## Discourse Chat Integration 
> 
> This changes adds an integration into the Discourse Chat feature adding a button to the chat options for allowing creating meeting links within the chat channels (two variants "dropdown" and "inline" from a new setting):
> | dropdown | inline |
> |---|--|
> | !\[image\](https://github.com/discourse/discourse-jitsi/assets/33708767/98c4f676-2636-49f1-a429-f66e93fcf139) | !\[image\](https://github.com/discourse/discourse-jitsi/assets/33708767/27f5d156-18f0-4e74-9332-86cebd502f41)
> 
> The button opens the same window (just with the additional options disabled), since I couldn't seem to find a way to get the chat feature to support the \`\[wrap\]\[/wrap\]\` bbcode without looking into it too much further, so in this case the meeting links are in plain text rather than formatted as buttons:
> !\[image\](https://github.com/discourse/discourse-jitsi/assets/33708767/c781742c-8bfa-4fea-9744-1ab9b5ff72ab)
> Pressing "Insert" then inserts the meeting link into the current draft message:
> !\[image\](https://github.com/discourse/discourse-jitsi/assets/33708767/2e2dd347-4183-49d9-aea5-e9b13c84f8d5)
> 
> The above chat integration can be toggled with a setting and has another setting for choosing the position of the button.
> 
> \## Link open in new tab
> 
> This also a change, making it so normal meeting links that are not using the iframe option, open in a new tab rather than redirecting the current tab.
> 
> \## Additional configuration
> 
> I've also added an additional three new settings related to the iframes:
> 
> !\[image\](https://github.com/discourse/discourse-jitsi/assets/33708767/1e7c7d4d-be53-46aa-bafc-9abc178ce56b)
> 
> hide iframe buttons: Controls whether the settings for desktop and mobile iframes are shown to user
> default mobile iframe: Controls the default value for the mobile iframe setting
> default desktop iframe: Controls the default value for the mobile iframe setting

---

_[View the full topic](https://meta.discourse.org/t/putting-a-button-into-chat-for-jitsi-calls/241000)._
