mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-09-09 01:26:07 -05:00
[Chat] Scroll chat view to bottom when loading chat history (#2725)
Took 4 minutes
This commit is contained in:
@@ -326,7 +326,7 @@ void ChatView::appendMessage(QString message,
|
||||
}
|
||||
}
|
||||
|
||||
if (atBottom) {
|
||||
if (atBottom || messageType.testFlag(Event_RoomSay::ChatHistory)) {
|
||||
verticalScrollBar()->setValue(verticalScrollBar()->maximum());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user