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
61568aca
Commit
61568aca
authored
Feb 15, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The notification option wasn't being used consistently
parent
2a7e19f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
docs/CHANGES.md
docs/CHANGES.md
+2
-1
src/converse-notification.js
src/converse-notification.js
+3
-3
No files found.
docs/CHANGES.md
View file @
61568aca
...
...
@@ -20,9 +20,10 @@
-
Allow JIDs not on the roster to be invited to a chatroom. [jcbrand]
-
#770 Allow setting contact attrs on chats.open [Ape]
## 2.0.7 (2017-02-1
4
)
## 2.0.7 (2017-02-1
5
)
-
Bugfix. 'TypeError: this.sendConfiguration(...).then is not a function' when an instant room is created. [jcbrand]
-
Ensure consistent behavior from
`show_controlbox_by_default`
[jcbrand]
-
#694 The
`notification_option`
wasn't being used consistently. [jcbrand]
## 2.0.6 (2017-02-13)
-
Escape user-generated input to prevent JS-injection attacks. (Thanks to SamWhited) [jcbrand]
...
...
src/converse-notification.js
View file @
61568aca
...
...
@@ -182,7 +182,7 @@
var
n
=
new
Notification
(
contact
.
fullname
,
{
body
:
message
,
lang
:
_converse
.
i18n
.
locale_data
.
converse
[
""
].
lang
,
icon
:
'
logo/conversejs.png
'
icon
:
_converse
.
notification_icon
});
setTimeout
(
n
.
close
.
bind
(
n
),
5000
);
};
...
...
@@ -191,7 +191,7 @@
var
n
=
new
Notification
(
contact
.
fullname
,
{
body
:
__
(
'
wants to be your contact
'
),
lang
:
_converse
.
i18n
.
locale_data
.
converse
[
""
].
lang
,
icon
:
'
logo/conversejs.png
'
icon
:
_converse
.
notification_icon
});
setTimeout
(
n
.
close
.
bind
(
n
),
5000
);
};
...
...
@@ -201,7 +201,7 @@
var
n
=
new
Notification
(
data
.
subject
,
{
body
:
data
.
message
,
lang
:
_converse
.
i18n
.
locale_data
.
converse
[
""
].
lang
,
icon
:
'
logo/conversejs.png
'
icon
:
_converse
.
notification_icon
});
setTimeout
(
n
.
close
.
bind
(
n
),
5000
);
}
...
...
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