mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-09-03 00:23:49 +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)
|
.scrollContentBackground(.hidden)
|
||||||
.background(theme.secondaryBackgroundColor)
|
.background(theme.secondaryBackgroundColor)
|
||||||
|
.navigationSplitViewColumnWidth(200)
|
||||||
} detail: {
|
} detail: {
|
||||||
selectSidebarItem?.makeContentView(popToRootTab: $popToRootTab)
|
selectSidebarItem?.makeContentView(popToRootTab: $popToRootTab)
|
||||||
}
|
}
|
||||||
|
|
|
@ -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)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue