Fix own messages not showing as encrypted

pull/173/head
Nicolas Werner 5 years ago
parent d5e1475a5c
commit b00e624fb0
  1. 6
      src/timeline/TimelineModel.cpp

@ -477,13 +477,13 @@ TimelineModel::addEvents(const mtx::responses::Timeline &timeline)
std::vector<QString> ids = internalAddEvents(timeline.events);
if (ids.empty())
return;
if (!ids.empty()) {
beginInsertRows(QModelIndex(), 0, static_cast<int>(ids.size() - 1));
this->eventOrder.insert(this->eventOrder.begin(), ids.rbegin(), ids.rend());
endInsertRows();
}
if (!timeline.events.empty())
updateLastMessage();
}

Loading…
Cancel
Save