Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
X
xmpp-pane
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Adrien Dorsaz
xmpp-pane
Commits
d926eab0
Commit
d926eab0
authored
Mar 31, 2018
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix entity build
parent
9bb3f763
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
src/xmpp/client.js
src/xmpp/client.js
+2
-2
src/xmpp/discover/entity.js
src/xmpp/discover/entity.js
+2
-2
No files found.
src/xmpp/client.js
View file @
d926eab0
...
...
@@ -407,7 +407,7 @@ class Client {
discoPubsubService
(
_entity
,
_node
=
null
)
{
console
.
log
(
'
client: discoPubsubService: starting
'
);
let
iq
i
nfo
=
new
IQ
({
let
iq
I
nfo
=
new
IQ
({
from
:
this
.
config
.
jid
,
to
:
_entity
,
id
:
this
.
lastContractId
++
,
...
...
@@ -426,7 +426,7 @@ class Client {
this
.
promise
(
iqInfoService
,
'
iq
'
)
.
then
(
(
iqResponse
)
=>
{
let
entity
=
new
Entity
(
iqResponse
.
get
ElementsByTagName
(
'
iq
'
)[
0
].
get
Attribute
(
'
from
'
));
let
entity
=
new
Entity
(
iqResponse
.
getAttribute
(
'
from
'
));
let
identities
=
iqResponse
.
getElementsByTagName
(
'
identity
'
);
let
features
=
iqResponse
.
getElementsByTagName
(
'
feature
'
);
...
...
src/xmpp/discover/entity.js
View file @
d926eab0
...
...
@@ -9,13 +9,13 @@
*/
class
Entity
{
constructor
(
_jid
)
{
this
.
jid
=
_id
;
this
.
jid
=
_
j
id
;
// Services supported by the Entity
// key: category and type of the identity
// value: identity name
this
.
identities
=
new
Map
();
// Features and protocols supported by the entity
this
.
features
=
new
Map
()
;
this
.
features
=
[]
;
this
.
protocols
=
new
Map
();
}
...
...
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