瀏覽代碼

update webxdc draft view after webxdcs have been edited

cyberta 3 年之前
父節點
當前提交
50bcd55a67
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      deltachat-ios/Chat/ChatViewController.swift

+ 5 - 0
deltachat-ios/Chat/ChatViewController.swift

@@ -1448,6 +1448,11 @@ class ChatViewController: UITableViewController {
                     messageIds.remove(at: newMsgMarkerIndex)
                 }
                 insertMessage(msg)
+            } else if msg.type == DC_MSG_WEBXDC,
+                      msg.chatId == chatId {
+                // webxdc draft got updated
+                draft.draftMsg = msg
+                configureDraftArea(draft: draft, animated: false)
             }
         }
     }