Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
converse.js
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
converse.js
Commits
6a70f8ab
Commit
6a70f8ab
authored
Oct 26, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated build
parent
2f9089ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
8 deletions
+13
-8
dist/converse.js
dist/converse.js
+11
-6
src/converse-notification.js
src/converse-notification.js
+2
-2
No files found.
dist/converse.js
View file @
6a70f8ab
...
...
@@ -57870,6 +57870,8 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
},
onBookmarked() {
const _converse = this.__super__._converse,
__ = _converse.__;
const icon = this.el.querySelector('.toggle-bookmark');
if (_.isNull(icon)) {
...
...
@@ -57878,8 +57880,10 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
if (this.model.get('bookmarked')) {
icon.classList.add('button-on');
icon.title = __('Unbookmark this groupchat');
} else {
icon.classList.remove('button-on');
icon.title = __('Bookmark this groupchat');
}
},
...
...
@@ -61778,6 +61782,7 @@ _converse_headless_converse_core__WEBPACK_IMPORTED_MODULE_0__["default"].plugins
renderFileUploadProgresBar() {
const msg = utils_emoji__WEBPACK_IMPORTED_MODULE_8__["default"].stringToElement(templates_file_progress_html__WEBPACK_IMPORTED_MODULE_4___default()(_.extend(this.model.toJSON(), {
'filename': this.model.file.name,
'filesize': filesize__WEBPACK_IMPORTED_MODULE_1___default()(this.model.file.size)
})));
this.replaceElement(msg);
...
...
@@ -70703,8 +70708,8 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
};
xhr.open('PUT', this.get('put'), true);
xhr.setRequestHeader("Content-type", this.
get('file')
.type);
xhr.send(this.
get('file')
);
xhr.setRequestHeader("Content-type", this.
file
.type);
xhr.send(this.
file
);
}
});
...
...
@@ -70840,10 +70845,10 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
stanza.c('reference', attrs).up();
});
if (message.get('
file
')) {
if (message.get('
oob_url
')) {
stanza.c('x', {
'xmlns': Strophe.NS.OUTOFBAND
}).c('url').t(message.get('
message
')).up();
}).c('url').t(message.get('
oob_url
')).up();
}
if (message.get('edited')) {
...
...
@@ -70960,7 +70965,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
});
} else {
const message = this.messages.create(_.extend(this.getOutgoingMessageAttributes(), {
'file':
fil
e,
'file':
tru
e,
'progress': 0,
'slot_request_url': slot_request_url
}), {
...
...
@@ -101740,7 +101745,7 @@ __e(o.time) +
'" data-msgid="' +
__e(o.msgid) +
'">\n <canvas class="avatar chat-msg__avatar" height="36" width="36"></canvas>\n <div class="chat-msg__content">\n <span class="chat-msg__text">Uploading file: <strong>' +
__e(o.file
.
name) +
__e(o.filename) +
'</strong>, ' +
__e(o.filesize) +
'</span>\n <progress value="' +
src/converse-notification.js
View file @
6a70f8ab
...
...
@@ -113,10 +113,10 @@ converse.plugins.add('converse-notification', {
const
audioOgg
=
new
Audio
(
_converse
.
sounds_path
+
"
msg_received.ogg
"
);
const
canPlayOgg
=
audioOgg
.
canPlayType
(
'
audio/ogg
'
);
if
(
canPlayOgg
===
'
probably
'
)
{
return
audioOgg
.
play
();
return
audioOgg
.
play
();
}
const
audioMp3
=
new
Audio
(
_converse
.
sounds_path
+
"
msg_received.mp3
"
);
const
canPlayMp3
=
audioMp3
.
canPlayType
(
'
audio/mp3
'
);
const
canPlayMp3
=
audioMp3
.
canPlayType
(
'
audio/mp3
'
);
if
(
canPlayMp3
===
'
probably
'
)
{
audioMp3
.
play
();
}
else
if
(
canPlayOgg
===
'
maybe
'
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment