Reset the lastMessageHasAlternateBackground{Reverse} values when clearing all messages in a ChannelView. (#1810)

This makes it so that we consistently start with the same values after
having cleared a ChannelView.
Example place where this happens: UserInfoPopup when user messages are
loaded and refreshed
This commit is contained in:
pajlada
2020-07-18 08:44:10 -04:00
committed by GitHub
parent 3942749226
commit 6ba9c5ec31
2 changed files with 5 additions and 0 deletions
+3
View File
@@ -467,6 +467,9 @@ void ChannelView::clearMessages()
this->messages_.clear();
this->scrollBar_->clearHighlights();
this->queueLayout();
this->lastMessageHasAlternateBackground_ = false;
this->lastMessageHasAlternateBackgroundReverse_ = true;
}
Scrollbar &ChannelView::getScrollBar()