mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-02 15:45:12 +00:00
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user