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
12af9d5c
Commit
12af9d5c
authored
Jan 22, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tying some loose ends
parent
4c763708
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
6 deletions
+4
-6
src/converse-core.js
src/converse-core.js
+1
-1
src/converse-mam.js
src/converse-mam.js
+2
-4
src/converse-register.js
src/converse-register.js
+1
-1
No files found.
src/converse-core.js
View file @
12af9d5c
...
@@ -373,7 +373,7 @@
...
@@ -373,7 +373,7 @@
// Module-level functions
// Module-level functions
// ----------------------
// ----------------------
this
.
generateResource
=
()
=>
`/converse.js-
${
Math
.
floor
(
Math
.
random
()
*
139749
825
).
toString
()}
`
;
this
.
generateResource
=
()
=>
`/converse.js-
${
Math
.
floor
(
Math
.
random
()
*
139749
528
).
toString
()}
`
;
this
.
sendCSI
=
function
(
stat
)
{
this
.
sendCSI
=
function
(
stat
)
{
/* Send out a Chat Status Notification (XEP-0352)
/* Send out a Chat Status Notification (XEP-0352)
...
...
src/converse-mam.js
View file @
12af9d5c
...
@@ -84,10 +84,8 @@
...
@@ -84,10 +84,8 @@
const
messages
=
[];
const
messages
=
[];
const
message_handler
=
_converse
.
connection
.
addHandler
(
function
(
message
)
{
const
message_handler
=
_converse
.
connection
.
addHandler
(
function
(
message
)
{
if
(
options
.
groupchat
)
{
if
(
options
.
groupchat
||
message
.
getAttribute
(
'
from
'
)
!==
options
[
'
with
'
])
{
// eslint-disable-line dot-notation
if
(
message
.
getAttribute
(
'
from
'
)
!==
options
[
'
with
'
])
{
// eslint-disable-line dot-notation
return
true
;
return
true
;
}
}
}
const
result
=
message
.
querySelector
(
'
result
'
);
const
result
=
message
.
querySelector
(
'
result
'
);
if
(
!
_
.
isNull
(
result
)
&&
result
.
getAttribute
(
'
queryid
'
)
===
queryid
)
{
if
(
!
_
.
isNull
(
result
)
&&
result
.
getAttribute
(
'
queryid
'
)
===
queryid
)
{
...
...
src/converse-register.js
View file @
12af9d5c
...
@@ -334,7 +334,7 @@
...
@@ -334,7 +334,7 @@
return
;
return
;
}
}
form
.
querySelector
(
'
input[type=submit]
'
).
classList
.
add
(
'
hidden
'
);
form
.
querySelector
(
'
input[type=submit]
'
).
classList
.
add
(
'
hidden
'
);
this
.
fetchRegistrationForm
(
domain
);
this
.
fetchRegistrationForm
(
domain
.
trim
()
);
},
},
fetchRegistrationForm
(
domain_name
)
{
fetchRegistrationForm
(
domain_name
)
{
...
...
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