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
0a7dff44
Commit
0a7dff44
authored
Sep 18, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #2235
parent
7330530d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
19 deletions
+8
-19
src/headless/converse-chat.js
src/headless/converse-chat.js
+8
-4
src/headless/converse-muc.js
src/headless/converse-muc.js
+0
-15
No files found.
src/headless/converse-chat.js
View file @
0a7dff44
...
...
@@ -179,8 +179,7 @@ converse.plugins.add('converse-chat', {
getMessageText
()
{
if
(
this
.
get
(
'
is_encrypted
'
))
{
return
this
.
get
(
'
plaintext
'
)
||
(
api
.
settings
.
get
(
'
loglevel
'
)
===
'
debug
'
?
__
(
'
Unencryptable OMEMO message
'
)
:
null
);
return
this
.
get
(
'
plaintext
'
)
||
this
.
get
(
'
body
'
)
||
__
(
'
Undecryptable OMEMO message
'
);
}
return
this
.
get
(
'
message
'
);
},
...
...
@@ -788,11 +787,16 @@ converse.plugins.add('converse-chat', {
getMessageBodyQueryAttrs
(
attrs
)
{
if
(
attrs
.
message
&&
attrs
.
msgid
)
{
return
{
'
message
'
:
attrs
.
message
,
const
query
=
{
'
from
'
:
attrs
.
from
,
'
msgid
'
:
attrs
.
msgid
}
if
(
!
attrs
.
is_encrypted
)
{
// We can't match the message if it's a reflected
// encrypted message (e.g. via MAM or in a MUC)
query
[
'
message
'
]
=
attrs
.
message
;
}
return
query
;
}
},
...
...
src/headless/converse-muc.js
View file @
0a7dff44
...
...
@@ -1930,21 +1930,6 @@ converse.plugins.add('converse-muc', {
return
false
;
},
getMessageBodyQueryAttrs
(
attrs
)
{
if
(
attrs
.
message
&&
attrs
.
msgid
)
{
const
query
=
{
'
from
'
:
attrs
.
from
,
'
msgid
'
:
attrs
.
msgid
}
if
(
!
attrs
.
is_encrypted
)
{
// We can't match the message if it's a reflected
// encrypted MUC message
query
[
'
message
'
]
=
attrs
.
message
;
}
return
query
;
}
},
/**
* Queue an incoming message stanza meant for this {@link _converse.Chatroom} for processing.
* @async
...
...
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