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
732c9233
Commit
732c9233
authored
Feb 14, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bugfix. Don't show hidden MUCs when new message received.
parent
fc560bf8
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
19 additions
and
6 deletions
+19
-6
CHANGES.md
CHANGES.md
+4
-0
src/converse-chatboxes.js
src/converse-chatboxes.js
+2
-2
src/converse-chatview.js
src/converse-chatview.js
+2
-1
src/converse-muc.js
src/converse-muc.js
+2
-3
src/converse-singleton.js
src/converse-singleton.js
+9
-0
No files found.
CHANGES.md
View file @
732c9233
...
...
@@ -5,6 +5,8 @@
### Bugfixes
-
Attribute error when empty IQ stanza is returned for vCard query
-
Don't allow PEP bookmarks if
`pubsub#publish-options`
is not advertised by the server.
-
In fullscreen view, sometimes a background MUC would come into the foreground
when a new message appears inside it.
_Note: previously this meant that bookmarks sent to servers that don't
support
`pubsub#publish-options`
were visible to all your contacts, even
...
...
@@ -27,6 +29,8 @@ though they should be private._
-
New configuration setting
[
root
](
https://conversejs.org/docs/html/configurations.html#root
)
-
The
[
view_mode
](
https://conversejs.org/docs/html/configurations.html#view-mode
)
setting now has a new possible value:
`embedded`
### Translation updates
-
Chinese (Traditional), French, German, Portuguese (Brazil), Russian, Ukrainian
## 3.3.2 (2018-01-29)
...
...
src/converse-chatboxes.js
View file @
732c9233
...
...
@@ -195,8 +195,8 @@
incrementUnreadMsgCounter
(
stanza
)
{
/* Given a newly received message, update the unread counter if
* necessary.
*/
* necessary.
*/
if
(
_
.
isNull
(
stanza
.
querySelector
(
'
body
'
)))
{
return
;
// The message has no text
}
...
...
src/converse-chatview.js
View file @
732c9233
...
...
@@ -1136,6 +1136,7 @@
afterShown
(
focus
)
{
if
(
u
.
isPersistableModel
(
this
.
model
))
{
this
.
model
.
clearUnreadMsgCounter
();
this
.
model
.
save
();
}
this
.
setChatState
(
_converse
.
ACTIVE
);
...
...
@@ -1219,7 +1220,7 @@
}
},
onScrolledDown
()
{
onScrolledDown
()
{
this
.
hideNewMessagesIndicator
();
if
(
_converse
.
windowState
!==
'
hidden
'
)
{
this
.
model
.
clearUnreadMsgCounter
();
...
...
src/converse-muc.js
View file @
732c9233
...
...
@@ -558,9 +558,8 @@
*
* This is instead done in `afterConnected` below.
*/
if
(
this
.
model
.
collection
&&
this
.
model
.
collection
.
browserStorage
)
{
// Without a connection, we haven't yet initialized
// localstorage
if
(
u
.
isPersistableModel
(
this
.
model
))
{
this
.
model
.
clearUnreadMsgCounter
();
this
.
model
.
save
();
}
this
.
occupantsview
.
setOccupantsHeight
();
...
...
src/converse-singleton.js
View file @
732c9233
...
...
@@ -104,6 +104,15 @@
}
},
ChatRoomView
:
{
show
(
focus
)
{
if
(
!
this
.
model
.
get
(
'
hidden
'
))
{
_
.
each
(
this
.
__super__
.
_converse
.
chatboxviews
.
xget
(
this
.
model
.
get
(
'
id
'
)),
hideChat
);
return
this
.
__super__
.
show
.
apply
(
this
,
arguments
);
}
}
},
RosterContactView
:
{
openChat
(
ev
)
{
/* We only have one chat visible at any one
...
...
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