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
b44c0c26
Commit
b44c0c26
authored
Apr 23, 2020
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mam: Add `MAMResult` hook
parent
ad499938
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
.eslintrc.json
.eslintrc.json
+1
-1
src/converse-muc-views.js
src/converse-muc-views.js
+3
-4
src/headless/converse-mam.js
src/headless/converse-mam.js
+2
-1
No files found.
.eslintrc.json
View file @
b44c0c26
...
...
@@ -110,7 +110,7 @@
"newline-per-chained-call"
:
"off"
,
"no-alert"
:
"off"
,
"no-array-constructor"
:
"error"
,
"no-await-in-loop"
:
"
error
"
,
"no-await-in-loop"
:
"
off
"
,
"no-bitwise"
:
"off"
,
"no-caller"
:
"error"
,
"no-console"
:
"off"
,
...
...
src/converse-muc-views.js
View file @
b44c0c26
...
...
@@ -6,14 +6,14 @@
*/
import
"
converse-modal
"
;
import
"
@converse/headless/utils/muc
"
;
import
{
BootstrapModal
}
from
"
./converse-modal.js
"
;
import
{
Model
}
from
'
skeletor.js/src/model.js
'
;
import
{
View
}
from
'
skeletor.js/src/view.js
'
;
import
{
__
}
from
'
@converse/headless/i18n
'
;
import
{
api
,
converse
}
from
"
@converse/headless/converse-core
"
;
import
{
debounce
,
head
,
isString
,
isUndefined
}
from
"
lodash
"
;
import
{
BootstrapModal
}
from
"
./converse-modal.js
"
;
import
{
render
}
from
"
lit-html
"
;
import
{
__
}
from
'
@converse/headless/i18n
'
;
import
RoomDetailsModal
from
'
modals/muc-details.js
'
;
import
{
converse
}
from
"
@converse/headless/converse-core
"
;
import
log
from
"
@converse/headless/log
"
;
import
st
from
"
@converse/headless/utils/stanza
"
;
import
tpl_add_chatroom_modal
from
"
templates/add_chatroom_modal.js
"
;
...
...
@@ -89,7 +89,6 @@ converse.plugins.add('converse-muc-views', {
initialize
()
{
const
{
_converse
}
=
this
;
const
{
api
}
=
_converse
;
api
.
promises
.
add
([
'
roomsPanelRendered
'
]);
...
...
src/headless/converse-mam.js
View file @
b44c0c26
...
...
@@ -98,7 +98,8 @@ converse.plugins.add('converse-mam', {
},
options
);
const
result
=
await
api
.
archive
.
query
(
query
);
/* eslint-disable no-await-in-loop */
api
.
hook
(
'
MAMResult
'
,
this
,
{
result
,
query
});
for
(
const
message
of
result
.
messages
)
{
try
{
await
msg_handler
(
message
);
...
...
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