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
d9093c09
Commit
d9093c09
authored
Nov 07, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #1312
parent
476b8041
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
CHANGES.md
CHANGES.md
+3
-2
dist/converse.js
dist/converse.js
+1
-1
src/headless/converse-chatboxes.js
src/headless/converse-chatboxes.js
+1
-1
No files found.
CHANGES.md
View file @
d9093c09
...
...
@@ -2,14 +2,15 @@
## 4.0.5 (Unreleased)
-
`FATAL: TypeError: Cannot read property 'extend' of undefined`
when using
`embedded`
view mode.
-
d
efault paths in converse-notifications.js are now relative
-
Error
`FATAL: TypeError: Cannot read property 'extend' of undefined`
when using
`embedded`
view mode.
-
D
efault paths in converse-notifications.js are now relative
-
#1188 Feature request: drag and drop file to HTTP Upload
-
#1268 Switch from SASS variables to CSS custom properties
-
#1278 Replace the default avatar with a SVG version
-
#1033 Setting show_send_button to true didn't work
-
#1306 added option
`notification_delay`
-
#1305 added value 'all' for 'show_desktop_notifications' to notifiy even if converse.js is open
-
#1312 Error
`unrecognized expression`
in Safari
## 4.0.4 (2018-10-29)
...
...
dist/converse.js
View file @
d9093c09
...
...
@@ -71331,7 +71331,7 @@ _converse_core__WEBPACK_IMPORTED_MODULE_2__["default"].plugins.add('converse-cha
'fullname': _.get(_converse.api.contacts.get(contact_jid), 'attributes.fullname') // Get chat box, but only create a new one when the message has a body.
};
const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}`).length > 0;
const has_body = sizzle(`body, encrypted[xmlns="${Strophe.NS.OMEMO}
"]
`).length > 0;
const chatbox = this.getChatBox(contact_jid, attrs, has_body);
if (chatbox && !chatbox.handleMessageCorrection(stanza)) {
src/headless/converse-chatboxes.js
View file @
d9093c09
...
...
@@ -730,7 +730,7 @@ converse.plugins.add('converse-chatboxes', {
'
fullname
'
:
_
.
get
(
_converse
.
api
.
contacts
.
get
(
contact_jid
),
'
attributes.fullname
'
)
}
// Get chat box, but only create a new one when the message has a body.
const
has_body
=
sizzle
(
`body, encrypted[xmlns="
${
Strophe
.
NS
.
OMEMO
}
`
).
length
>
0
;
const
has_body
=
sizzle
(
`body, encrypted[xmlns="
${
Strophe
.
NS
.
OMEMO
}
"]
`
).
length
>
0
;
const
chatbox
=
this
.
getChatBox
(
contact_jid
,
attrs
,
has_body
);
if
(
chatbox
&&
!
chatbox
.
handleMessageCorrection
(
stanza
))
{
const
msgid
=
stanza
.
getAttribute
(
'
id
'
),
...
...
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