Pinned messages : add comment on PinnedEventsTimelineProvider
This commit is contained in:
parent
82d19fd65e
commit
71e13b2aa2
1 changed files with 4 additions and 1 deletions
|
|
@ -56,7 +56,10 @@ class PinnedEventsTimelineProvider @Inject constructor(
|
||||||
combine(
|
combine(
|
||||||
featureFlagService.isFeatureEnabledFlow(FeatureFlags.PinnedEvents),
|
featureFlagService.isFeatureEnabledFlow(FeatureFlags.PinnedEvents),
|
||||||
networkMonitor.connectivity
|
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 ->
|
.onEach { isFeatureEnabled ->
|
||||||
if (isFeatureEnabled) {
|
if (isFeatureEnabled) {
|
||||||
loadTimelineIfNeeded()
|
loadTimelineIfNeeded()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue