Pinned messages : add comment on PinnedEventsTimelineProvider
This commit is contained in:
parent
9ed9559191
commit
c6e7e7d09e
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,10 @@ class PinnedEventsTimelineProvider @Inject constructor(
|
|||
combine(
|
||||
featureFlagService.isFeatureEnabledFlow(FeatureFlags.PinnedEvents),
|
||||
networkMonitor.connectivity
|
||||
) { isEnabled, _ -> isEnabled }
|
||||
) {
|
||||
// do not use connectivity here as data can be loaded from cache, it's just to trigger retry if needed
|
||||
isEnabled, _ -> isEnabled
|
||||
}
|
||||
.onEach { isFeatureEnabled ->
|
||||
if (isFeatureEnabled) {
|
||||
loadTimelineIfNeeded()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue