Explorar o código

avoid unneeded callback for finding a message-id

B. Petersen %!s(int64=3) %!d(string=hai) anos
pai
achega
d66b20101b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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