Skip to content

Commit

Permalink
swift
Browse files Browse the repository at this point in the history
  • Loading branch information
link2xt committed Apr 4, 2024
1 parent 15e1d42 commit 5a99387
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions deltachat-ios/Chat/ChatViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -429,17 +429,17 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
if messageId > 0 {
let msg = self.dcContext.getMessage(id: messageId)
if msg.state == DC_STATE_OUT_DRAFT && msg.type == DC_MSG_WEBXDC {
draft.draftMsg = msg
configureDraftArea(draft: draft, animated: false)
self.draft.draftMsg = msg
self.configureDraftArea(draft: self.draft, animated: false)
return
}
}
refreshMessages()
updateTitle()
self.refreshMessages()
self.updateTitle()
DispatchQueue.main.async {
self.updateScrollDownButtonVisibility()
}
markSeenMessagesInVisibleArea()
self.markSeenMessagesInVisibleArea()
}
}
}
Expand All @@ -452,11 +452,11 @@ class ChatViewController: UITableViewController, UITableViewDropDelegate {
guard let self, let ui = notification.userInfo else { return }
let chatId = ui["chat_id"] as? Int ?? 0
if chatId == 0 || chatId == self.chatId {
let wasLastSectionScrolledToBottom = isLastRowScrolledToBottom()
refreshMessages()
updateTitle()
let wasLastSectionScrolledToBottom = self.isLastRowScrolledToBottom()
self.refreshMessages()
self.updateTitle()
if wasLastSectionScrolledToBottom {
scrollToBottom(animated: true)
self.scrollToBottom(animated: true)
}
updateScrollDownButtonVisibility()

Check failure on line 461 in deltachat-ios/Chat/ChatViewController.swift

View workflow job for this annotation

GitHub Actions / build

call to method 'updateScrollDownButtonVisibility' in closure requires explicit use of 'self' to make capture semantics explicit
markSeenMessagesInVisibleArea()

Check failure on line 462 in deltachat-ios/Chat/ChatViewController.swift

View workflow job for this annotation

GitHub Actions / build

call to method 'markSeenMessagesInVisibleArea' in closure requires explicit use of 'self' to make capture semantics explicit
Expand Down

0 comments on commit 5a99387

Please sign in to comment.