2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-30 22:25:12 +00:00

Support topic choosing in ShareBox.

This commit is contained in:
John Preston
2022-11-01 15:17:13 +04:00
parent 7384cd3463
commit e6c2aa8021
14 changed files with 273 additions and 117 deletions

View File

@@ -44,6 +44,7 @@ class IndexedList;
namespace Data {
enum class ForwardOptions;
class Thread;
} // namespace Data
namespace Ui {
@@ -70,11 +71,11 @@ class ShareBox final : public Ui::BoxContent {
public:
using CopyCallback = Fn<void()>;
using SubmitCallback = Fn<void(
std::vector<not_null<PeerData*>>&&,
std::vector<not_null<Data::Thread*>>&&,
TextWithTags&&,
Api::SendOptions,
Data::ForwardOptions option)>;
using FilterCallback = Fn<bool(PeerData*)>;
using FilterCallback = Fn<bool(not_null<Data::Thread*>)>;
struct Descriptor {
not_null<Main::Session*> session;
@@ -125,8 +126,8 @@ private:
int contentHeight() const;
void updateScrollSkips();
void addPeerToMultiSelect(PeerData *peer, bool skipAnimation = false);
void innerSelectedChanged(PeerData *peer, bool checked);
void addPeerToMultiSelect(not_null<Data::Thread*> thread);
void innerSelectedChanged(not_null<Data::Thread*> thread, bool checked);
void peopleDone(
const MTPcontacts_Found &result,