mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 10:11:00 +00:00
Remove messages list feedback generator
This commit is contained in:
parent
75505f9ba3
commit
33ce6eadc2
2 changed files with 1 additions and 3 deletions
|
@ -109,6 +109,7 @@ struct IceCubesApp: App {
|
|||
}
|
||||
.scrollContentBackground(.hidden)
|
||||
.background(theme.secondaryBackgroundColor)
|
||||
.navigationSplitViewColumnWidth(200)
|
||||
} detail: {
|
||||
selectSidebarItem?.makeContentView(popToRootTab: $popToRootTab)
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue