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
a0e2bcce
Commit
a0e2bcce
authored
Jun 07, 2018
by
Adrien Dorsaz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
js-beautify
parent
981075ae
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
7 deletions
+12
-7
src/sidebar/panel.js
src/sidebar/panel.js
+10
-5
src/xmpp/core/message.js
src/xmpp/core/message.js
+1
-1
src/xmpp/core/presence.js
src/xmpp/core/presence.js
+1
-1
No files found.
src/sidebar/panel.js
View file @
a0e2bcce
...
...
@@ -68,16 +68,21 @@ function checkConnection() {
function
refreshNetwork
(
response
)
{
if
(
!
response
.
error
)
{
let
xmppNet
=
document
.
getElementById
(
'
xmppNet
'
);
let
pubsubNet
=
{
'
pubsub
'
:
new
Array
()}
let
pubsubNet
=
{
'
pubsub
'
:
new
Array
()
}
response
.
network
.
pubsub
.
forEach
(
(
entity
,
jid
)
=>
{
response
.
network
.
pubsub
.
forEach
((
entity
,
jid
)
=>
{
let
features
=
new
Array
();
entity
[
'
metadata
'
][
'
features
'
].
forEach
(
(
feature
)
=>
{
features
.
push
({
'
feature
'
:
feature
});
entity
[
'
metadata
'
][
'
features
'
].
forEach
((
feature
)
=>
{
features
.
push
({
'
feature
'
:
feature
});
});
pubsubNet
[
'
pubsub
'
].
push
({
'
name
'
:
entity
[
'
metadata
'
][
'
name
'
]
||
jid
,
pubsubNet
[
'
pubsub
'
].
push
({
'
name
'
:
entity
[
'
metadata
'
][
'
name
'
]
||
jid
,
'
jid
'
:
jid
,
'
features
'
:
features
});
...
...
src/xmpp/core/message.js
View file @
a0e2bcce
...
...
@@ -16,7 +16,7 @@ class Message extends Stanza {
// but it could be not defined to send message. to bare JID of the client
if
(
this
.
to
)
{
message
.
setAttribute
(
'
to
'
,
this
.
to
);
}
}
message
.
setAttribute
(
'
from
'
,
this
.
from
);
...
...
src/xmpp/core/presence.js
View file @
a0e2bcce
...
...
@@ -16,7 +16,7 @@ class Presence extends Stanza {
// However client MAY set "to" to route the presence to a recipient
if
(
this
.
to
)
{
presence
.
setAttribute
(
'
to
'
,
this
.
to
);
}
}
presence
.
setAttribute
(
'
from
'
,
this
.
from
);
...
...
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