Show new chat messages ribbon only if no scrolling is to be expected.

This commit is contained in:
Ghazi Triki 2018-06-04 15:02:17 +01:00
parent 1668b60069
commit a6e239c875

View File

@ -360,9 +360,9 @@ with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
// @todo : scromm if
// 1 - I am the send of the last message
// 2 - If the scroll bar is at the bottom most
if (UsersUtil.isMe(userID) || chatMessagesList.verticalScrollAtMax) {
if (UsersUtil.isMe(userID) || (chatMessagesList.verticalScrollAtMax)) {
if (scrollTimer != null) scrollTimer.start();
} else {
} else if (!scrollTimer.running) {
unreadMessagesBar.visible = unreadMessagesBar.includeInLayout = true;
}
}