mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
a85f33f7d3
commit
35f0f87f73
1 changed files with 4 additions and 3 deletions
|
@ -872,9 +872,10 @@ bool Controller::changeShown(Data::Story *story) {
|
||||||
if (_shown == id && !sessionChanged) {
|
if (_shown == id && !sessionChanged) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (const auto now = this->story()) {
|
if (_shown) {
|
||||||
now->owner().stories().unregisterPolling(
|
Assert(_session != nullptr);
|
||||||
now,
|
_session->data().stories().unregisterPolling(
|
||||||
|
_shown,
|
||||||
Data::Stories::Polling::Viewer);
|
Data::Stories::Polling::Viewer);
|
||||||
}
|
}
|
||||||
if (sessionChanged) {
|
if (sessionChanged) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue