mirror of
https://github.com/zulip/zulip.git
synced 2025-11-03 21:43:21 +00:00
left sidebar: Remove broken animation for new PMs.
When new PMs came in, we would do a little animation to show you the incoming message. Unfortunately, it was broken and would animate too many things. (The code looks at a single var to see if PM counts changed, but there are actually mulitple PM counts. We could fix that, but we decided that this feature just isn't worth the complexity.) We still animate incoming mentions. Fixes #11868.
This commit is contained in:
@@ -2,7 +2,6 @@ var unread_ui = (function () {
|
||||
|
||||
var exports = {};
|
||||
|
||||
var last_private_message_count = 0;
|
||||
var last_mention_count = 0;
|
||||
|
||||
function do_new_messages_animation(li) {
|
||||
@@ -18,13 +17,6 @@ function do_new_messages_animation(li) {
|
||||
setTimeout(end_animation, 6000);
|
||||
}
|
||||
|
||||
exports.animate_private_message_changes = function (li, new_private_message_count) {
|
||||
if (new_private_message_count > last_private_message_count) {
|
||||
do_new_messages_animation(li);
|
||||
}
|
||||
last_private_message_count = new_private_message_count;
|
||||
};
|
||||
|
||||
exports.animate_mention_changes = function (li, new_mention_count) {
|
||||
if (new_mention_count > last_mention_count) {
|
||||
do_new_messages_animation(li);
|
||||
|
||||
Reference in New Issue
Block a user