Skip to content

Commit a99b9ed

Browse files
committed
jingle: added the initial boilerplate code for the plugin.
1 parent 8dc8b1d commit a99b9ed

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

src/converse.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import "./plugins/controlbox/index.js"; // The control box
2323
import "./plugins/dragresize/index.js"; // Allows chat boxes to be resized by dragging them
2424
import "./plugins/fullscreen/index.js";
2525
import "./plugins/headlines-view/index.js";
26+
import "./plugins/jingle/index.js" // Implements the jingle protocol
2627
import "./plugins/mam-views/index.js";
2728
import "./plugins/minimize/index.js"; // Allows chat boxes to be minimized
2829
import "./plugins/muc-views/index.js"; // Views related to MUC

src/plugins/jingle/index.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @description Converse.js plugin which adds XEP-0166 Jingle
3+
* @copyright 2022, the Converse.js contributors
4+
* @license Mozilla Public License (MPLv2)
5+
*/
6+
7+
import { converse } from '@converse/headless/core';
8+
9+
converse.plugins.add('jingle', {
10+
11+
initialize: function () {
12+
13+
},
14+
});

src/shared/constants.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ export const VIEW_PLUGINS = [
1111
'converse-dragresize',
1212
'converse-fullscreen',
1313
'converse-headlines-view',
14+
'converse-jingle',
1415
'converse-mam-views',
1516
'converse-minimize',
1617
'converse-modal',

0 commit comments

Comments
 (0)