Skip to content

Commit 13ae510

Browse files
committed
Fix
1 parent 2faec59 commit 13ae510

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

apple/InlineIOS/Main/HomeCombinedItem.swift

+9
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ enum CombinedItem: Identifiable {
55
case space(SpaceItem)
66
case chat(HomeChatItem)
77

8+
var stableId: String {
9+
switch self {
10+
case let .chat(chatItem):
11+
"chat_\(chatItem.dialog.id)"
12+
case let .space(spaceItem):
13+
"space_\(spaceItem.space.id)"
14+
}
15+
}
16+
817
var id: Int64 {
918
switch self {
1019
case let .space(space): space.id

apple/InlineIOS/Main/HomeView.swift

+4-1
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@ struct HomeView: View {
107107
.padding(.horizontal, 45)
108108
} else {
109109
List {
110-
ForEach(combinedItems, id: \.id) { item in
110+
ForEach(combinedItems, id: \.stableId) { item in
111111
chatOrSpaceView(for: item)
112+
.transaction { transaction in
113+
transaction.animation = nil
114+
}
112115
.listRowInsets(.init(
113116
top: 9,
114117
leading: 16,

0 commit comments

Comments
 (0)