2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Bundle silent and scheduled to Api::SendOptions.

This commit is contained in:
John Preston
2019-08-12 13:11:34 +01:00
parent 0b08810d5a
commit caef7dde24
27 changed files with 413 additions and 349 deletions

View File

@@ -17,6 +17,10 @@ namespace Window {
class SessionNavigation;
} // namespace Window
namespace Api {
struct SendOptions;
} // namespace Api
namespace Main {
class Session;
} // namespace Main
@@ -52,7 +56,7 @@ public:
using SubmitCallback = Fn<void(
QVector<PeerData*>&&,
TextWithTags&&,
bool)>;
Api::SendOptions)>;
using FilterCallback = Fn<bool(PeerData*)>;
ShareBox(
@@ -73,7 +77,9 @@ private:
void prepareCommentField();
void scrollAnimationCallback();
void submit(bool silent = false);
void submit(Api::SendOptions options);
void submitSilent();
void submitScheduled();
void copyLink();
bool searchByUsername(bool useCache = false);