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
359dbc68
Commit
359dbc68
authored
Aug 15, 2013
by
JC Brand
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into mockup
parents
a9c19788
44d094f5
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
15 deletions
+30
-15
CHANGES.rst
CHANGES.rst
+7
-0
bower.json
bower.json
+1
-1
converse.js
converse.js
+22
-14
No files found.
CHANGES.rst
View file @
359dbc68
Changelog
Changelog
=========
=========
0.5.3 (Unreleased)
------------------
- Register presence and message handlers before fetching the roster. Otherwise
some presence notifications might be missed. [jcbrand]
- Add a debug option (logs to the browser console). [jcbrand]
0.5.2 (2013-08-05)
0.5.2 (2013-08-05)
------------------
------------------
...
...
bower.json
View file @
359dbc68
{
{
"name"
:
"converse"
,
"name"
:
"converse"
,
"version"
:
"0.5.
0
"
,
"version"
:
"0.5.
2
"
,
"devDependencies"
:
{
"devDependencies"
:
{
"jasmine"
:
"https://github.com/jcbrand/jasmine.git#1_3_x"
"jasmine"
:
"https://github.com/jcbrand/jasmine.git#1_3_x"
},
},
...
...
converse.js
View file @
359dbc68
...
@@ -48,6 +48,7 @@
...
@@ -48,6 +48,7 @@
this
.
auto_list_rooms
=
false
;
this
.
auto_list_rooms
=
false
;
this
.
auto_subscribe
=
false
;
this
.
auto_subscribe
=
false
;
this
.
bosh_service_url
=
''
;
// The BOSH connection manager URL. Required if you are not prebinding.
this
.
bosh_service_url
=
''
;
// The BOSH connection manager URL. Required if you are not prebinding.
this
.
debug
=
false
;
this
.
hide_muc_server
=
false
;
this
.
hide_muc_server
=
false
;
this
.
i18n
=
locales
.
en
;
this
.
i18n
=
locales
.
en
;
this
.
prebind
=
false
;
this
.
prebind
=
false
;
...
@@ -2615,8 +2616,13 @@
...
@@ -2615,8 +2616,13 @@
this
.
onConnected
=
function
(
connection
,
callback
)
{
this
.
onConnected
=
function
(
connection
,
callback
)
{
this
.
connection
=
connection
;
this
.
connection
=
connection
;
this
.
connection
.
xmlInput
=
function
(
body
)
{
console
.
log
(
body
);
};
if
(
this
.
debug
)
{
this
.
connection
.
xmlOutput
=
function
(
body
)
{
console
.
log
(
body
);
};
this
.
connection
.
xmlInput
=
function
(
body
)
{
console
.
log
(
body
);
};
this
.
connection
.
xmlOutput
=
function
(
body
)
{
console
.
log
(
body
);
};
Strophe
.
log
=
function
(
level
,
msg
)
{
console
.
log
(
level
+
'
'
+
msg
);
};
}
this
.
bare_jid
=
Strophe
.
getBareJidFromJid
(
this
.
connection
.
jid
);
this
.
bare_jid
=
Strophe
.
getBareJidFromJid
(
this
.
connection
.
jid
);
this
.
domain
=
Strophe
.
getDomainFromJid
(
this
.
connection
.
jid
);
this
.
domain
=
Strophe
.
getDomainFromJid
(
this
.
connection
.
jid
);
this
.
features
=
new
this
.
Features
();
this
.
features
=
new
this
.
Features
();
...
@@ -2627,18 +2633,20 @@
...
@@ -2627,18 +2633,20 @@
$
.
proxy
(
this
.
roster
.
subscribeToSuggestedItems
,
this
.
roster
),
$
.
proxy
(
this
.
roster
.
subscribeToSuggestedItems
,
this
.
roster
),
'
http://jabber.org/protocol/rosterx
'
,
'
message
'
,
null
);
'
http://jabber.org/protocol/rosterx
'
,
'
message
'
,
null
);
this
.
connection
.
roster
.
get
(
$
.
proxy
(
function
(
a
)
{
this
.
connection
.
addHandler
(
this
.
connection
.
addHandler
(
$
.
proxy
(
function
(
presence
)
{
$
.
proxy
(
function
(
presence
)
{
this
.
presenceHandler
(
presence
);
this
.
presenceHandler
(
presence
);
return
true
;
return
true
;
},
this
.
roster
),
null
,
'
presence
'
,
null
);
},
this
.
roster
),
null
,
'
presence
'
,
null
);
this
.
connection
.
addHandler
(
this
.
connection
.
addHandler
(
$
.
proxy
(
function
(
message
)
{
$
.
proxy
(
function
(
message
)
{
this
.
chatboxes
.
messageReceived
(
message
);
this
.
chatboxes
.
messageReceived
(
message
);
return
true
;
return
true
;
},
this
),
null
,
'
message
'
,
'
chat
'
);
},
this
),
null
,
'
message
'
,
'
chat
'
);
},
this
));
this
.
connection
.
roster
.
get
(
function
()
{});
$
(
window
).
on
(
"
blur focus
"
,
$
.
proxy
(
function
(
e
)
{
$
(
window
).
on
(
"
blur focus
"
,
$
.
proxy
(
function
(
e
)
{
if
((
this
.
windowState
!=
e
.
type
)
&&
(
e
.
type
==
'
focus
'
))
{
if
((
this
.
windowState
!=
e
.
type
)
&&
(
e
.
type
==
'
focus
'
))
{
converse
.
clearMsgCounter
();
converse
.
clearMsgCounter
();
...
...
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