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
4015eb2f
Commit
4015eb2f
authored
5 years ago
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Name anonymous function to fix failing test
parent
b5c56c83
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
15 deletions
+12
-15
spec/muc.js
spec/muc.js
+2
-1
src/headless/converse-chatboxes.js
src/headless/converse-chatboxes.js
+9
-7
src/headless/converse-muc.js
src/headless/converse-muc.js
+1
-7
No files found.
spec/muc.js
View file @
4015eb2f
...
...
@@ -5064,7 +5064,8 @@
expect
(
notifications
.
length
).
toBe
(
1
);
expect
(
notifications
[
0
].
textContent
.
trim
()).
toEqual
(
'
nomorenicks is typing
'
);
timeout_functions
[
1
]();
timeout_functions
.
filter
(
f
=>
f
.
name
===
'
bound safeDestroy
'
).
pop
()();
events
=
view
.
el
.
querySelectorAll
(
'
.chat-event
'
);
expect
(
events
.
length
).
toBe
(
3
);
expect
(
events
[
0
].
textContent
.
trim
()).
toEqual
(
'
some1 has entered the groupchat
'
);
...
...
This diff is collapsed.
Click to expand it.
src/headless/converse-chatboxes.js
View file @
4015eb2f
...
...
@@ -107,13 +107,15 @@ converse.plugins.add('converse-chatboxes', {
this
.
on
(
'
change:put
'
,
this
.
uploadFile
,
this
);
}
if
(
this
.
isEphemeral
())
{
window
.
setTimeout
(()
=>
{
try
{
this
.
destroy
()
}
catch
(
e
)
{
_converse
.
log
(
e
,
Strophe
.
LogLevel
.
ERROR
);
}
},
10000
);
window
.
setTimeout
(
this
.
safeDestroy
.
bind
(
this
),
10000
);
}
},
safeDestroy
()
{
try
{
this
.
destroy
()
}
catch
(
e
)
{
_converse
.
log
(
e
,
Strophe
.
LogLevel
.
ERROR
);
}
},
...
...
This diff is collapsed.
Click to expand it.
src/headless/converse-muc.js
View file @
4015eb2f
...
...
@@ -256,13 +256,7 @@ converse.plugins.add('converse-muc', {
this
.
on
(
'
change:put
'
,
this
.
uploadFile
,
this
);
}
if
(
this
.
isEphemeral
())
{
window
.
setTimeout
(()
=>
{
try
{
this
.
destroy
()
}
catch
(
e
)
{
_converse
.
log
(
e
,
Strophe
.
LogLevel
.
ERROR
);
}
},
10000
);
window
.
setTimeout
(
this
.
safeDestroy
.
bind
(
this
),
10000
);
}
else
{
this
.
setOccupant
();
this
.
setVCard
();
...
...
This diff is collapsed.
Click to expand it.
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