summary refs log tree commit diff
diff options
context:
space:
mode:
authorNicolas Werner <nicolas.werner@hotmail.de>2019-10-28 20:39:02 +0100
committerNicolas Werner <nicolas.werner@hotmail.de>2019-11-23 20:06:15 +0100
commit15badebc7735d554a39cf0eb50e400ee95c1e0c8 (patch)
tree0e938a9585bc2bc7578a0d2ede8b8b0227c16fa1
parentRedirect qt logger (diff)
downloadnheko-15badebc7735d554a39cf0eb50e400ee95c1e0c8.tar.xz
Show own messages in RoomList
-rw-r--r--src/timeline2/TimelineModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline2/TimelineModel.cpp b/src/timeline2/TimelineModel.cpp
index b37ade54..45126b36 100644
--- a/src/timeline2/TimelineModel.cpp
+++ b/src/timeline2/TimelineModel.cpp
@@ -525,7 +525,7 @@ TimelineModel::addEvents(const mtx::responses::Timeline &timeline)
         this->eventOrder.insert(this->eventOrder.end(), ids.begin(), ids.end());
         endInsertRows();
 
-        for (auto id = ids.rbegin(); id != ids.rend(); id++) {
+        for (auto id = eventOrder.rbegin(); id != eventOrder.rend(); id++) {
                 auto event = events.value(*id);
                 if (auto e = boost::get<mtx::events::EncryptedEvent<mtx::events::msg::Encrypted>>(
                       &event)) {