Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ struct EditorCoordinatorView: View {
case let .recentOpen(spaceId):
WidgetObjectListRecentOpenView(spaceId: spaceId, output: model)
case let .bin(spaceId):
if FeatureFlags.binScreenEmptyAction {
BinListView(spaceId: spaceId, output: model)
} else {
WidgetObjectListBinView(spaceId: spaceId, output: model)
}
BinListView(spaceId: spaceId, output: model)
case let .page(data):
EditorPageCoordinatorView(data: data, showHeader: true, setupEditorInput: { _, _ in })
case let .list(data):
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,6 @@ protocol BinSubscriptionServiceProtocol: AnyObject, Sendable {

var dataSequence: AnyAsyncSequence<[ObjectDetails]> { get async }

func legacyStartSubscription(
spaceId: String,
objectLimit: Int?,
update: @escaping @MainActor ([ObjectDetails]) -> Void
) async

func startSubscription(spaceId: String, objectLimit: Int?, name: String?) async

func stopSubscription() async
Expand All @@ -36,38 +30,6 @@ actor BinSubscriptionService: BinSubscriptionServiceProtocol {
return subscriptionStorage.statePublisher.map { $0.items }.values.eraseToAnyAsyncSequence()
}

func legacyStartSubscription(
spaceId: String,
objectLimit: Int?,
update: @escaping @MainActor ([ObjectDetails]) -> Void
) async {

let sort = SearchHelper.sort(
relation: BundledPropertyKey.lastModifiedDate,
type: .desc
)

let filters: [DataviewFilter] = .builder {
SearchHelper.notHiddenFilters(isArchive: true)
}

let searchData: SubscriptionData = .search(
SubscriptionData.Search(
identifier: subscriptionId,
spaceId: spaceId,
sorts: [sort],
filters: filters,
limit: objectLimit ?? Constants.limit,
offset: 0,
keys: BundledPropertyKey.objectListKeys.map { $0.rawValue }
)
)

try? await subscriptionStorage.startOrUpdateSubscription(data: searchData) { data in
await update(data.items)
}
}

func startSubscription(spaceId: String, objectLimit: Int?, name: String?) async {
let sort = SearchHelper.sort(
relation: BundledPropertyKey.lastModifiedDate,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@
public extension FeatureFlags {

// Static value reader
static var binScreenEmptyAction: Bool {
value(for: .binScreenEmptyAction)
}

static var muteSpacePossibility: Bool {
value(for: .muteSpacePossibility)
}
Expand Down Expand Up @@ -144,7 +140,6 @@ public extension FeatureFlags {

// All toggles
static let features: [FeatureDescription] = [
.binScreenEmptyAction,
.muteSpacePossibility,
.addNotificationsSettings,
.swipeToReply,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,6 @@ import Foundation

public extension FeatureDescription {

static let binScreenEmptyAction = FeatureDescription(
title: "Bin screen - empty action",
type: .feature(author: "[email protected]", releaseVersion: "13"),
defaultValue: true
)

static let muteSpacePossibility = FeatureDescription(
title: "Mute space possibility",
type: .feature(author: "[email protected]", releaseVersion: "13"),
Expand Down