Skip to content

Commit

Permalink
Fix crash when scrolling chat list
Browse files Browse the repository at this point in the history
Fixes: #6749
  • Loading branch information
Johennes committed Sep 20, 2022
1 parent 28dc2d0 commit d591ce6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Riot/Modules/Home/AllChats/AllChatsViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ class AllChatsViewController: HomeViewController {
private var initialScrollPosition: Double = 0

private func scrollPosition(of scrollView: UIScrollView) -> Double {
return scrollView.contentOffset.y + scrollView.adjustedContentInset.top + scrollView.adjustedContentInset.bottom
return scrollView.contentOffset.y + scrollView.adjustedContentInset.top
}

override func scrollViewWillBeginDragging(_ scrollView: UIScrollView) {
Expand Down
1 change: 1 addition & 0 deletions changelog.d/6749.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix crash when scrolling chat list

0 comments on commit d591ce6

Please sign in to comment.