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) .scrollContentBackground(.hidden)
.background(theme.secondaryBackgroundColor) .background(theme.secondaryBackgroundColor)
.navigationSplitViewColumnWidth(200)
} detail: { } detail: {
selectSidebarItem?.makeContentView(popToRootTab: $popToRootTab) selectSidebarItem?.makeContentView(popToRootTab: $popToRootTab)
} }

View file

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