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

Added ability to set emoji status for certain period of time.

This commit is contained in:
23rd
2022-09-01 22:24:46 +03:00
committed by John Preston
parent 9bb2bb09b9
commit fa4801ac94
10 changed files with 166 additions and 47 deletions

View File

@@ -171,24 +171,7 @@ void PickMuteBox(not_null<Ui::GenericBox*> box, not_null<PeerData*> peer) {
struct State {
base::unique_qptr<Ui::PopupMenu> menu;
};
const auto seconds = std::vector<TimeId>{
(60 * 15),
(60 * 30),
(3600 * 1),
(3600 * 2),
(3600 * 3),
(3600 * 4),
(3600 * 8),
(3600 * 12),
(86400 * 1),
(86400 * 2),
(86400 * 3),
(86400 * 7 * 1),
(86400 * 7 * 2),
(86400 * 31 * 1),
(86400 * 31 * 2),
(86400 * 31 * 3),
};
const auto seconds = Ui::DefaultTimePickerValues();
const auto phrases = ranges::views::all(
seconds
) | ranges::views::transform(Ui::FormatMuteFor) | ranges::to_vector;