From 4d1335eb93553d113926c2061ed4d87800ac354e Mon Sep 17 00:00:00 2001 From: Audric Ackermann Date: Mon, 2 Nov 2020 14:02:43 +1100 Subject: [PATCH] finish removing backbone last seen indicator view --- background.html | 1 - background_test.html | 1 - js/views/last_seen_indicator_view.js | 36 ---------------------------- test/index.html | 2 -- 4 files changed, 40 deletions(-) delete mode 100644 js/views/last_seen_indicator_view.js diff --git a/background.html b/background.html index d3492c616..a91a5c510 100644 --- a/background.html +++ b/background.html @@ -212,7 +212,6 @@ - diff --git a/background_test.html b/background_test.html index 67a5b7fbd..5302bfbd1 100644 --- a/background_test.html +++ b/background_test.html @@ -214,7 +214,6 @@ - diff --git a/js/views/last_seen_indicator_view.js b/js/views/last_seen_indicator_view.js deleted file mode 100644 index de475aff5..000000000 --- a/js/views/last_seen_indicator_view.js +++ /dev/null @@ -1,36 +0,0 @@ -/* global Whisper, i18n */ - -// eslint-disable-next-line func-names -(function() { - 'use strict'; - - window.Whisper = window.Whisper || {}; - - Whisper.LastSeenIndicatorView = Whisper.View.extend({ - className: 'module-last-seen-indicator', - templateName: 'last-seen-indicator-view', - initialize(options = {}) { - this.count = options.count || 0; - }, - - increment(count) { - this.count += count; - this.render(); - }, - - getCount() { - return this.count; - }, - - render_attributes() { - const unreadMessages = - this.count === 1 - ? i18n('unreadMessage', [this.count]) - : i18n('unreadMessages', [this.count]); - - return { - unreadMessages, - }; - }, - }); -})(); diff --git a/test/index.html b/test/index.html index 4c7caafd8..7565763c9 100644 --- a/test/index.html +++ b/test/index.html @@ -249,7 +249,6 @@ - @@ -288,7 +287,6 @@ -