mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-31 06:35:14 +00:00
Move some settings from global to Session.
This commit is contained in:
@@ -698,7 +698,7 @@ void PeerMenuShareContactBox(
|
||||
}
|
||||
|
||||
void PeerMenuCreatePoll(not_null<PeerData*> peer) {
|
||||
const auto box = Ui::show(Box<CreatePollBox>());
|
||||
const auto box = Ui::show(Box<CreatePollBox>(&peer->session()));
|
||||
const auto lock = box->lifetime().make_state<bool>(false);
|
||||
box->submitRequests(
|
||||
) | rpl::start_with_next([=](const PollData &result) {
|
||||
|
Reference in New Issue
Block a user