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
51b818f9
Commit
51b818f9
authored
Sep 20, 2019
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
smacks: Also check for BOSH to determine support
parent
7ee6152c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
locale/af/LC_MESSAGES/converse.po
locale/af/LC_MESSAGES/converse.po
+2
-2
src/headless/converse-smacks.js
src/headless/converse-smacks.js
+5
-4
No files found.
locale/af/LC_MESSAGES/converse.po
View file @
51b818f9
...
...
@@ -8,7 +8,7 @@ msgstr ""
"Project-Id-Version: Converse.js 0.4\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2019-09-13 15:01+0200\n"
"PO-Revision-Date: 2019-0
8-23 10:16
+0200\n"
"PO-Revision-Date: 2019-0
9-20 12:05
+0200\n"
"Last-Translator: JC Brand <jc@opkode.com>\n"
"Language-Team: Afrikaans <https://hosted.weblate.org/projects/conversejs/"
"translations/af/>\n"
...
...
@@ -1790,7 +1790,7 @@ msgstr " bv. conversejs.org"
#: dist/converse-no-dependencies.js:52539
msgid "Fetch registration form"
msgstr "Haal
tans
die registrasie vorm"
msgstr "Haal die registrasie vorm"
#: dist/converse-no-dependencies.js:52540
msgid "Tip: A list of public XMPP providers is available"
...
...
src/headless/converse-smacks.js
View file @
51b818f9
...
...
@@ -32,6 +32,9 @@ converse.plugins.add('converse-smacks', {
});
function
isStreamManagementSupported
()
{
if
(
_converse
.
api
.
connection
.
isType
(
'
bosh
'
)
&&
!
_converse
.
isTestEnv
())
{
return
false
;
}
return
_converse
.
api
.
disco
.
stream
.
getFeature
(
'
sm
'
,
Strophe
.
NS
.
SM
);
}
...
...
@@ -95,7 +98,7 @@ converse.plugins.add('converse-smacks', {
}
function
resetSessionData
()
{
_converse
.
session
.
save
({
_converse
.
session
&&
_converse
.
session
.
save
({
'
smacks_enabled
'
:
false
,
'
num_stanzas_handled
'
:
0
,
'
num_stanzas_handled_by_server
'
:
0
,
...
...
@@ -206,9 +209,7 @@ converse.plugins.add('converse-smacks', {
_converse
.
connection
.
addHandler
(
stanzaHandler
);
_converse
.
connection
.
addHandler
(
sendAck
,
Strophe
.
NS
.
SM
,
'
r
'
);
_converse
.
connection
.
addHandler
(
handleAck
,
Strophe
.
NS
.
SM
,
'
a
'
);
if
((
_converse
.
api
.
connection
.
isType
(
'
websocket
'
)
||
_converse
.
isTestEnv
())
&&
_converse
.
session
.
get
(
'
smacks_stream_id
'
))
{
if
(
_converse
.
session
.
get
(
'
smacks_stream_id
'
))
{
await
sendResumeStanza
();
}
else
{
resetSessionData
();
...
...
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