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
cd5dacbe
Commit
cd5dacbe
authored
Sep 19, 2019
by
Christoph Scholz
Committed by
JC Brand
Sep 21, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Process stanzas from mam one-by-one
parent
51b818f9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletion
+10
-1
CHANGES.md
CHANGES.md
+2
-0
src/headless/converse-mam.js
src/headless/converse-mam.js
+8
-1
No files found.
CHANGES.md
View file @
cd5dacbe
...
...
@@ -5,6 +5,8 @@
-
Bugfix: Don't treat every duplicate message ID as a message correction; since some
clients don't use globally unique ID's this causes false positives.
-
#1712:
`TypeError: plugin._features is not a function`
-
Bugfix: process stanzas from mam one-by-one in order to correctly process message
receipts
## 5.0.3 (2019-09-13)
...
...
src/headless/converse-mam.js
View file @
cd5dacbe
...
...
@@ -126,7 +126,14 @@ converse.plugins.add('converse-mam', {
},
options
);
const
result
=
await
_converse
.
api
.
archive
.
query
(
query
);
result
.
messages
.
forEach
(
message_handler
);
/* eslint-disable no-await-in-loop */
for
(
const
message
of
result
.
messages
)
{
try
{
await
message_handler
(
message
);
}
catch
(
e
)
{
_converse
.
log
(
e
,
Strophe
.
LogLevel
.
ERROR
);
}
}
if
(
result
.
error
)
{
result
.
error
.
retry
=
()
=>
this
.
fetchArchivedMessages
(
options
,
page
);
...
...
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