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
d9a61746
Commit
d9a61746
authored
Jul 18, 2017
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix. Server disco features forgotten between logouts.
parent
8ffd9e24
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
CHANGES.md
CHANGES.md
+3
-2
src/converse-core.js
src/converse-core.js
+7
-4
No files found.
CHANGES.md
View file @
d9a61746
...
...
@@ -2,8 +2,9 @@
## 3.2.0 (Unreleased)
### New features
### New features
and improvements
-
Add support for Emojis (either native, or via
<a
href=
"https://www.emojione.com/"
>
Emojione
</a>
). [jcbrand]
-
Add JID validation in the contact add form. [jcbrand]
### New configuration settings
*
The
`visible_toolbar_buttons.emoticons`
configuration option is now changed to
`visible_toolbar_buttons.emoji`
.
...
...
@@ -22,8 +23,8 @@
-
#866 Add babel in order to support ES2015 syntax [jcbrand]
#### Bugfixes:
-
Room name wasn't being updated after changing it in the configuration form. [jcbrand]
-
Server disco features were "forgotten" after logging out and then logging in again. [jcbrand]
## 3.1.1 (2017-07-12)
...
...
src/converse-core.js
View file @
d9a61746
...
...
@@ -583,7 +583,7 @@
});
this
.
initSession
=
function
()
{
this
.
session
=
new
this
.
Session
();
this
.
session
=
new
Backbone
.
Model
();
const
id
=
b64_sha1
(
'
converse.bosh-session
'
);
this
.
session
.
id
=
id
;
// Appears to be necessary for backbone.browserStorage
this
.
session
.
browserStorage
=
new
Backbone
.
BrowserStorage
[
_converse
.
storage
](
id
);
...
...
@@ -1859,8 +1859,6 @@
}
});
this
.
Session
=
Backbone
.
Model
;
// General session settings to be saved to sessionStorage.
this
.
Feature
=
Backbone
.
Model
;
this
.
Features
=
Backbone
.
Collection
.
extend
({
/* Service Discovery
* -----------------
...
...
@@ -1869,13 +1867,17 @@
* See XEP-0030 for more details: http://xmpp.org/extensions/xep-0030.html
* All features are shown here: http://xmpp.org/registrar/disco-features.html
*/
model
:
_converse
.
Feature
,
model
:
Backbone
.
Model
,
initialize
()
{
this
.
addClientIdentities
().
addClientFeatures
();
this
.
browserStorage
=
new
Backbone
.
BrowserStorage
[
_converse
.
storage
](
b64_sha1
(
`converse.features
${
_converse
.
bare_jid
}
`
)
);
this
.
on
(
'
add
'
,
this
.
onFeatureAdded
,
this
);
this
.
fetchFeatures
();
},
fetchFeatures
()
{
if
(
this
.
browserStorage
.
records
.
length
===
0
)
{
// browserStorage is empty, so we've likely never queried this
// domain for features yet
...
...
@@ -2164,6 +2166,7 @@
delete
this
.
chatboxes
.
browserStorage
;
if
(
this
.
features
)
{
this
.
features
.
reset
();
this
.
features
.
browserStorage
.
_clear
();
}
this
.
session
.
destroy
();
window
.
removeEventListener
(
'
click
'
,
_converse
.
onUserActivity
);
...
...
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