Fix crash when clearing empty timeline

pull/791/head
Nicolas Werner 3 years ago
parent 3758c42ed6
commit d112d6b11f
No known key found for this signature in database
GPG Key ID: C8D75E610773F2D9
  1. 2
      src/Cache.cpp

@ -3182,9 +3182,11 @@ Cache::clearTimeline(const std::string &room_id)
break;
}
if (!start) {
do {
lmdb::cursor_del(msgCursor);
} while (msgCursor.get(indexVal, val, MDB_PREV));
}
cursor.close();
msgCursor.close();

Loading…
Cancel
Save