void RepoService::onRefreshSuccess(const std::vector<ServerRepo>& repos)
{
    in_refresh_ = false;

    server_repos_ = repos;

    emit refreshSuccess(repos);
}
void EventsService::onRefreshSuccess(const std::vector<SeafEvent>& events, int new_offset)
{
    in_refresh_ = false;

    const std::vector<SeafEvent> new_events = handleEventsOffset(events);

    bool is_loading_more = more_offset_ > 0;
    bool has_more = new_offset > 0;
    more_offset_ = new_offset;

    emit refreshSuccess(new_events, is_loading_more, has_more);
}
void EventsService::onRefreshSuccess(const std::vector<SeafEvent>& events, int new_offset)
{
    in_refresh_ = false;

    // XXX: uncomment this when we need "load more events feature"
    /*
    const std::vector<SeafEvent> new_events = handleEventsOffset(events);

    bool is_loading_more = more_offset_ > 0;
    bool has_more = new_offset > 0;

    more_offset_ = new_offset;

    emit refreshSuccess(new_events, is_loading_more, has_more);
    */

    emit refreshSuccess(events, false, false);
}