Remove messages list feedback generator

This commit is contained in:
Thomas Ricouard 2023-01-05 13:09:34 +01:00
parent 75505f9ba3
commit 33ce6eadc2
2 changed files with 1 additions and 3 deletions

View File

@ -109,6 +109,7 @@ struct IceCubesApp: App {
}
.scrollContentBackground(.hidden)
.background(theme.secondaryBackgroundColor)
.navigationSplitViewColumnWidth(200)
} detail: {
selectSidebarItem?.makeContentView(popToRootTab: $popToRootTab)
}

View File

@ -9,8 +9,6 @@ class ConversationsListViewModel: ObservableObject {
@Published var isLoadingFirstPage: Bool = true
@Published var conversations: [Conversation] = []
private let feedbackGenerator = UINotificationFeedbackGenerator()
public init() { }
func fetchConversations() async {
@ -44,7 +42,6 @@ class ConversationsListViewModel: ObservableObject {
}
conversations.insert(event.conversation, at: 0)
conversations = conversations.sorted(by: { $0.lastStatus.createdAt.asDate > $1.lastStatus.createdAt.asDate })
feedbackGenerator.notificationOccurred(.success)
}
}
}