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

Show slowmode error messages.

This commit is contained in:
John Preston
2019-07-17 12:37:42 +02:00
parent 01d0479335
commit 04bf24288a
16 changed files with 210 additions and 68 deletions

View File

@@ -43,12 +43,17 @@ enum class SendFilesWay {
class SendFilesBox : public BoxContent {
public:
enum class SendLimit {
One,
Many
};
SendFilesBox(
QWidget*,
not_null<Window::SessionController*> controller,
Storage::PreparedList &&list,
const TextWithTags &caption,
CompressConfirm compressed);
CompressConfirm compressed,
SendLimit limit);
void setConfirmedCallback(
Fn<void(
@@ -116,6 +121,7 @@ private:
CompressConfirm _compressConfirmInitial = CompressConfirm::None;
CompressConfirm _compressConfirm = CompressConfirm::None;
SendLimit _sendLimit = SendLimit::Many;
Fn<void(
Storage::PreparedList &&list,