mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-04 01:19:33 +00:00
Pinned messages : add comment on PinnedEventsTimelineProvider
This commit is contained in:
+4
-1
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user