Browse Source

avoid unneeded callback for finding a message-id

B. Petersen 3 years ago
parent
commit
d66b20101b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      deltachat-ios/Chat/ChatViewController.swift

+ 1 - 1
deltachat-ios/Chat/ChatViewController.swift

@@ -1386,7 +1386,7 @@ class ChatViewController: UITableViewController {
     }
 
     func updateMessage(_ messageId: Int) {
-        if messageIds.firstIndex(where: { $0 == messageId }) != nil {
+        if messageIds.firstIndex(of: messageId) != nil {
             reloadData()
         } else {
             // new outgoing message