Skip to content

Commit 15d771b

Browse files
committed
Minor processing fix
1 parent 4b5ea44 commit 15d771b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ChatLayout/Classes/Core/Model/StateController.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ final class StateController<Layout: ChatLayoutRepresentation> {
782782
let globalIndex = globalIndexFor(indexPath.itemPath, kind: .cell, state: .model(afterUpdateModel))
783783
if let localItemToRestore = itemToRestore {
784784
if localItemToRestore.kind == .cell,
785-
localItemToRestore.globalIndex + 1 >= globalIndex {
785+
localItemToRestore.globalIndex >= globalIndex {
786786
itemToRestore?.globalIndex = localItemToRestore.globalIndex + 1
787787
}
788788
} else {

0 commit comments

Comments
 (0)