Don't block on empty from token

This commit is contained in:
Konstantinos Sideris 2018-08-31 14:56:55 +03:00
parent 3de650d5f9
commit 28dda237c2
1 changed files with 0 additions and 7 deletions

View File

@ -570,13 +570,6 @@ TimelineView::init()
void
TimelineView::getMessages()
{
if (prev_batch_token_.isEmpty()) {
nhlog::ui()->info("[{}] start of timeline reached, prev_batch token is empty",
room_id_.toStdString());
isTimelineFinished = true;
return;
}
mtx::http::MessagesOpts opts;
opts.room_id = room_id_.toStdString();
opts.from = prev_batch_token_.toStdString();