Commit Graph

22 Commits

Author SHA1 Message Date
23rd e318a7d65f Simplified ranges::find_if with ranges::any_of and ranges::none_of. 2020-06-23 21:53:43 +04:00
John Preston bdbcd8e540 Use Main::Session in entities parsing. 2020-06-08 12:05:17 +04:00
John Preston c70a1f03de Fix applying poll updates. 2020-04-30 11:35:01 +04:00
John Preston 7a9cfcc40d Improve poll closing by timer and results reloading. 2020-04-21 18:55:35 +04:00
John Preston 5dcb232b77 Force reload results on auto-closed quiz. 2020-04-21 18:55:34 +04:00
John Preston 3cb76fb80b Support poll closing by date. 2020-04-21 18:55:34 +04:00
John Preston 13d22947df Send poll solution with entities. 2020-04-21 18:55:34 +04:00
John Preston 3e2f4bed50 Update scheme to layer 102.
Support different dice-like media.
2020-04-21 18:55:34 +04:00
John Preston 5aacf867cd Correctly apply 'min' updates in polls. 2020-01-24 10:31:18 +03:00
John Preston 3e0b2f5553 Add PollResultsBox. 2020-01-23 10:09:33 +03:00
John Preston f700220ec1 Create polls with different settings. 2020-01-23 10:09:33 +03:00
John Preston afff7634f9 Display last voters userpics. 2020-01-23 10:09:33 +03:00
John Preston 95b2886bad Display correct poll subtitle and quiz answer. 2020-01-23 10:09:33 +03:00
John Preston ff44094ded Rename AuthSession to Main::Session. 2019-07-24 13:45:24 +02:00
John Preston 567bf60644 Use getters in MTP classes. 2019-07-05 16:23:07 +02:00
John Preston fe618bd652 Use crl::time/now instead of TimeMs/getms. 2019-02-19 11:06:33 +04:00
John Preston 8708a001c7 Always display nice percent values.
Sum of percent values should never exceed 100%. If any two answers
received same amount of votes, they should show same percent values.
This way sum could be less than 100% (three answers, one vote each),
but this looks better than giving extra vote to some random answer.
2018-12-25 22:12:35 +04:00
John Preston 6f176803d4 Reload poll data each 30 seconds without update. 2018-12-24 21:03:53 +04:00
John Preston b6f7832745 Add create poll box from groups three-dot menu. 2018-12-22 10:29:03 +04:00
John Preston 74c1db740d Implement polls voting and actions. 2018-12-21 17:09:33 +04:00
John Preston 4bb5dcf50c Simplest poll layout. 2018-12-21 17:09:32 +04:00
John Preston 47bdeeef9a Poll data and updates handling added. 2018-12-21 17:09:31 +04:00