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
7ad39cfd
Commit
7ad39cfd
authored
Dec 05, 2016
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fetch the room information before opening the room.
parent
67cdf5da
Changes
6
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
237 additions
and
95 deletions
+237
-95
docs/CHANGES.md
docs/CHANGES.md
+2
-3
spec/chatroom.js
spec/chatroom.js
+140
-33
src/converse-bookmarks.js
src/converse-bookmarks.js
+1
-1
src/converse-chatview.js
src/converse-chatview.js
+0
-1
src/converse-muc.js
src/converse-muc.js
+84
-57
tests/utils.js
tests/utils.js
+10
-0
No files found.
docs/CHANGES.md
View file @
7ad39cfd
...
...
@@ -2,9 +2,8 @@
## 2.0.4 (Unreleased)
-
#737: Bugfix. Translations weren't being applied. [jcbrand]
-
Room information as returned by the server is now stored on the room model.
For context, see: http://xmpp.org/extensions/xep-0045.html#disco-roominfo
[jcbrand]
-
Fetch room info and store it on the room model.
For context, see: http://xmpp.org/extensions/xep-0045.html#disco-roominfo [jcbrand]
-
Bugfix. Switching from bookmarks form to config form shows only the spinner. [jcbrand]
-
Bugfix. Other room occupants sometimes not shown when reloading the page. [jcbrand]
-
Bugfix. Due to changes in
`converse-core`
the controlbox wasn't aware anymore of
...
...
spec/chatroom.js
View file @
7ad39cfd
This diff is collapsed.
Click to expand it.
src/converse-bookmarks.js
View file @
7ad39cfd
...
...
@@ -104,7 +104,7 @@
if
(
!
_
.
isUndefined
(
model
)
&&
model
.
get
(
'
nick
'
))
{
this
.
join
(
this
.
model
.
get
(
'
nick
'
));
}
else
{
this
.
__super__
.
checkForReservedNick
.
apply
(
this
,
arguments
);
return
this
.
__super__
.
checkForReservedNick
.
apply
(
this
,
arguments
);
}
},
...
...
src/converse-chatview.js
View file @
7ad39cfd
...
...
@@ -662,7 +662,6 @@
// model is going to be destroyed afterwards.
this
.
model
.
set
(
'
chat_state
'
,
converse
.
INACTIVE
);
this
.
sendChatState
();
this
.
model
.
destroy
();
}
this
.
remove
();
...
...
src/converse-muc.js
View file @
7ad39cfd
This diff is collapsed.
Click to expand it.
tests/utils.js
View file @
7ad39cfd
...
...
@@ -122,6 +122,16 @@
utils
.
openChatRoom
(
converse
,
room
,
server
);
var
view
=
converse
.
chatboxviews
.
get
(
room
+
'
@
'
+
server
);
// We pretend this is a new room, so no disco info is returned.
var
features_stanza
=
$iq
({
from
:
'
lounge@localhost
'
,
'
id
'
:
IQ_id
,
'
to
'
:
'
dummy@localhost/desktop
'
,
'
type
'
:
'
error
'
}).
c
(
'
error
'
,
{
'
type
'
:
'
cancel
'
})
.
c
(
'
item-not-found
'
,
{
'
xmlns
'
:
"
urn:ietf:params:xml:ns:xmpp-stanzas
"
});
converse
.
connection
.
_dataRecv
(
utils
.
createRequest
(
features_stanza
));
// The XMPP server returns the reserved nick for this user.
var
stanza
=
$iq
({
'
type
'
:
'
result
'
,
...
...
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