diff --git a/deltachat-ios/Chat/ChatViewController.swift b/deltachat-ios/Chat/ChatViewController.swift index a3313c815..eccc060df 100644 --- a/deltachat-ios/Chat/ChatViewController.swift +++ b/deltachat-ios/Chat/ChatViewController.swift @@ -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() } } } @@ -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() markSeenMessagesInVisibleArea()