remove unused GroupUpdateView

pull/1226/head
Audric Ackermann 5 years ago
parent 797802885c
commit dca4b9ef6d
No known key found for this signature in database
GPG Key ID: 999F434D76324AD4

@ -1,33 +0,0 @@
/* global Backbone, Whisper */
// eslint-disable-next-line func-names
(function() {
'use strict';
window.Whisper = window.Whisper || {};
// TODO: remove this as unused?
Whisper.GroupUpdateView = Backbone.View.extend({
tagName: 'div',
className: 'group-update',
render() {
// TODO l10n
if (this.model.left) {
this.$el.text(`${this.model.left} left the group`);
return this;
}
const messages = ['Updated the group.'];
if (this.model.name) {
messages.push(`Group name has been set to '${this.model.name}'.`);
}
if (this.model.joined) {
messages.push(`${this.model.joined.join(', ')} joined the group`);
}
this.$el.text(messages.join(' '));
return this;
},
});
})();
Loading…
Cancel
Save