mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
remove unused updateInboxSectionUnread()
This commit is contained in:
parent
422c2610b6
commit
55c4963772
|
@ -174,7 +174,6 @@
|
||||||
});
|
});
|
||||||
|
|
||||||
// FIXME: Fix this for new react views
|
// FIXME: Fix this for new react views
|
||||||
this.updateInboxSectionUnread();
|
|
||||||
this.setupLeftPane();
|
this.setupLeftPane();
|
||||||
},
|
},
|
||||||
render_attributes: {
|
render_attributes: {
|
||||||
|
@ -429,24 +428,6 @@
|
||||||
}
|
}
|
||||||
this.$('.conversation:first .recorder').trigger('close');
|
this.$('.conversation:first .recorder').trigger('close');
|
||||||
},
|
},
|
||||||
updateInboxSectionUnread() {
|
|
||||||
// FIXME: Fix this for new react views
|
|
||||||
// const $section = this.$('.section-conversations-unread-counter');
|
|
||||||
// const models =
|
|
||||||
// (this.inboxListView.collection &&
|
|
||||||
// this.inboxListView.collection.models) ||
|
|
||||||
// [];
|
|
||||||
// const unreadCount = models.reduce(
|
|
||||||
// (count, m) => count + Math.max(0, m.get('unreadCount')),
|
|
||||||
// 0
|
|
||||||
// );
|
|
||||||
// $section.text(unreadCount);
|
|
||||||
// if (unreadCount > 0) {
|
|
||||||
// $section.show();
|
|
||||||
// } else {
|
|
||||||
// $section.hide();
|
|
||||||
// }
|
|
||||||
},
|
|
||||||
onClick(e) {
|
onClick(e) {
|
||||||
this.closeRecording(e);
|
this.closeRecording(e);
|
||||||
},
|
},
|
||||||
|
|
|
@ -186,23 +186,6 @@ h4.section-toggle,
|
||||||
h4 {
|
h4 {
|
||||||
flex: 1;
|
flex: 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.section-conversations-unread-counter {
|
|
||||||
color: #ffffff;
|
|
||||||
background-color: #2090ea;
|
|
||||||
text-align: center;
|
|
||||||
padding-top: 1px;
|
|
||||||
padding-left: 3px;
|
|
||||||
padding-right: 3px;
|
|
||||||
font-weight: 300;
|
|
||||||
font-size: 11px;
|
|
||||||
letter-spacing: 0.25px;
|
|
||||||
height: 16px;
|
|
||||||
min-width: 16px;
|
|
||||||
line-height: 16px;
|
|
||||||
border-radius: 8px;
|
|
||||||
box-shadow: 0px 0px 0px 1px #1a1c20;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.network-status-container {
|
.network-status-container {
|
||||||
|
|
Loading…
Reference in a new issue