// contentsItem doesn't need a geom change as it's Pos is changed (ensured by void ChatScene::firstHandlePositionChanged(qreal xpos))
qreal height = _contentsItem.setGeometryByWidth(contentsWidth);
linePos -= height;
- bool needGeometryChange = linePos == pos().y() && height != _height;
+ bool needGeometryChange = linePos == pos().y();
if(needGeometryChange) {
_timestampItem.prepareGeometryChange();
_contentsItem.setPos(contentsPos);
- _timestampItem.clearLayout();
_senderItem.clearLayout();
+ _contentsItem.clearLayout();
if(needGeometryChange)
prepareGeometryChange();
// don't show the marker if we wrote that new line
if(!(flags & Message::Self)) {
BufferId bufferId = BufferId(chatScene()->idString().toInt());
- MsgId lastSeenMsgId = Client::networkModel()->lastSeenMsgId(bufferId);
+ MsgId lastSeenMsgId = Client::networkModel()->lastSeenMarkerMsgId(bufferId);
if(lastSeenMsgId < myMsgId && lastSeenMsgId >= prevMsgId) {
QtUiStyleSettings s("Colors");
QLinearGradient gradient(0, 0, 0, contentsItem().fontMetrics()->lineSpacing());