Fix bug where channel view infinitely tries to load a Topic channel
This commit is contained in:
1 parent
e7234c38cd
commit
20faa017fd
2 files changed
+8
-6
No files matched your search
+3
-1
@@ -7,7 +7,9 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|||||||
|
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- Nothing worth mentioning yet.
|
### Fixed
|
||||||
|
|
||||||
|
- A bug where channel view infinitely tries to load a `Topic` channel
|
||||||
|
|
||||||
## [0.25.4] - 2024-08-24
|
## [0.25.4] - 2024-08-24
|
||||||
|
|
||||||
|
|||||||
@@ -7,13 +7,13 @@ import "pkg:/source/utils/Locale.bs"
|
|||||||
import "pkg:/source/utils/Logging.bs"
|
import "pkg:/source/utils/Logging.bs"
|
||||||
|
|
||||||
function LoadChannel(invidiousNode as object) as void
|
function LoadChannel(invidiousNode as object) as void
|
||||||
if m.contentTask <> invalid
|
loadState = m.top.loadState
|
||||||
m.contentTask.cancel = true
|
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded or loadState = FeedLoadState.Error
|
||||||
|
return
|
||||||
end if
|
end if
|
||||||
|
|
||||||
loadState = m.top.loadState
|
if m.contentTask <> invalid
|
||||||
if loadState = FeedLoadState.Loading or loadState = FeedLoadState.Loaded
|
m.contentTask.cancel = true
|
||||||
return
|
|
||||||
end if
|
end if
|
||||||
|
|
||||||
m.top.loadState = FeedLoadState.Loading
|
m.top.loadState = FeedLoadState.Loading
|
||||||
|
|||||||
Reference in new issue
Block a user