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
db8fd5c0
Commit
db8fd5c0
authored
Jan 18, 2018
by
JC Brand
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Turn off message animations by default
parent
db1c9c38
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
4 deletions
+21
-4
CHANGES.md
CHANGES.md
+6
-0
docs/source/configuration.rst
docs/source/configuration.rst
+10
-0
src/converse-chatview.js
src/converse-chatview.js
+5
-4
No files found.
CHANGES.md
View file @
db8fd5c0
...
...
@@ -2,6 +2,12 @@
## 3.3.1 (Unreleased)
### UI/UX changes
-
Add new configuration option
[
show_message_load_animation
](
https://conversejs.org/docs/html/configurations.html#show-message-load-animation
)
with a default value of
`false`
. The message load animations (added in 3.3.0)
cause slowness and performance issues in Firefox, so they're now disabled by default.
### Translation changes
-
Updated Spanish and French translations.
-
New translation: "Simplified Chinese"
...
...
docs/source/configuration.rst
View file @
db8fd5c0
...
...
@@ -1138,6 +1138,16 @@ the operating system or browser (which might not support emoji).
See also `emojione_image_path`_.
show_message_load_animation
---------------------------
* Default: ``false``
Determines whether a CSS3 background-color fade-out animation is shown when messages
appear in chats.
Set to ``false`` by default since this option causes performance issues on Firefox.
show_only_online_users
----------------------
...
...
src/converse-chatview.js
View file @
db8fd5c0
...
...
@@ -110,6 +110,7 @@
'
chatview_avatar_height
'
:
32
,
'
chatview_avatar_width
'
:
32
,
'
show_toolbar
'
:
true
,
'
show_message_load_animation
'
:
false
,
'
time_format
'
:
'
HH:mm
'
,
'
visible_toolbar_buttons
'
:
{
'
emoji
'
:
true
,
...
...
@@ -520,10 +521,10 @@
},
getExtraMessageClasses
(
attrs
)
{
if
(
window
.
converse_disable_effects
)
{
return
attrs
.
delayed
&&
'
delayed
'
||
''
;
}
else
{
if
(
_converse
.
show_message_load_animation
)
{
return
'
onload
'
+
(
attrs
.
delayed
&&
'
delayed
'
||
''
);
}
else
{
return
attrs
.
delayed
&&
'
delayed
'
||
''
;
}
},
...
...
@@ -566,7 +567,7 @@
'
extra_classes
'
:
this
.
getExtraMessageClasses
(
attrs
)
})
));
if
(
!
window
.
converse_disable_effects
)
{
if
(
_converse
.
show_message_load_animation
)
{
window
.
setTimeout
(
_
.
partial
(
u
.
removeClass
,
'
onload
'
,
msg
),
2000
);
}
const
msg_content
=
msg
.
querySelector
(
'
.chat-msg-content
'
);
...
...
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