A little cleanup in ConversationView.resetLastSeenIndicator
FREEBIE
This commit is contained in:
parent
13fb40fdcc
commit
f602ac462f
1 changed files with 3 additions and 3 deletions
|
@ -304,12 +304,12 @@
|
||||||
|
|
||||||
if (oldestUnread && unreadCount > 0) {
|
if (oldestUnread && unreadCount > 0) {
|
||||||
this.lastSeenIndicator = new Whisper.LastSeenIndicatorView({count: unreadCount});
|
this.lastSeenIndicator = new Whisper.LastSeenIndicatorView({count: unreadCount});
|
||||||
var unreadEl = this.lastSeenIndicator.render().$el;
|
var lastSeenEl = this.lastSeenIndicator.render().$el;
|
||||||
|
|
||||||
unreadEl.insertBefore(this.$('#' + oldestUnread.get('id')));
|
lastSeenEl.insertBefore(this.$('#' + oldestUnread.get('id')));
|
||||||
|
|
||||||
if (this.view.atBottom() || options.scroll) {
|
if (this.view.atBottom() || options.scroll) {
|
||||||
var position = unreadEl[0].scrollIntoView(true);
|
lastSeenEl[0].scrollIntoView();
|
||||||
}
|
}
|
||||||
|
|
||||||
// scrollIntoView is an async operation, but we have no way to listen for
|
// scrollIntoView is an async operation, but we have no way to listen for
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue