mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-20 07:07:48 +00:00
parent
a85f33f7d3
commit
35f0f87f73
@ -872,9 +872,10 @@ bool Controller::changeShown(Data::Story *story) {
|
||||
if (_shown == id && !sessionChanged) {
|
||||
return false;
|
||||
}
|
||||
if (const auto now = this->story()) {
|
||||
now->owner().stories().unregisterPolling(
|
||||
now,
|
||||
if (_shown) {
|
||||
Assert(_session != nullptr);
|
||||
_session->data().stories().unregisterPolling(
|
||||
_shown,
|
||||
Data::Stories::Polling::Viewer);
|
||||
}
|
||||
if (sessionChanged) {
|
||||
|
Loading…
Reference in New Issue
Block a user