mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Extract SparseIdsList module from SharedMedia.
This way it can be reused in search results management.
This commit is contained in:
@@ -40,6 +40,7 @@ Copyright (c) 2014-2017 John Preston, https://desktop.telegram.org
|
||||
#include "storage/storage_facade.h"
|
||||
#include "storage/storage_shared_media.h"
|
||||
#include "storage/storage_user_photos.h"
|
||||
#include "history/history_sparse_ids.h"
|
||||
|
||||
namespace {
|
||||
|
||||
@@ -1922,6 +1923,12 @@ void ApiWrap::sendSaveChatAdminsRequests(not_null<ChatData*> chat) {
|
||||
requestSendDelayed();
|
||||
}
|
||||
|
||||
void ApiWrap::requestSharedMediaCount(
|
||||
not_null<PeerData*> peer,
|
||||
Storage::SharedMediaType type) {
|
||||
requestSharedMedia(peer, type, 0, SliceType::Before);
|
||||
}
|
||||
|
||||
void ApiWrap::requestSharedMedia(
|
||||
not_null<PeerData*> peer,
|
||||
SharedMediaType type,
|
||||
|
Reference in New Issue
Block a user