Explorar el Código

terminate xdc on sending and call RelayHelper

B. Petersen hace 2 años
padre
commit
adc4fb853a
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      deltachat-ios/Controller/WebxdcViewController.swift

+ 2 - 1
deltachat-ios/Controller/WebxdcViewController.swift

@@ -360,7 +360,8 @@ extension WebxdcViewController: WKScriptMessageHandler {
 
         case .sendToChat:
             logger.debug("send to chat: \(message.body)")
-            // TODO: pass file and thext to share forward handler so that it results in a draft; exit the xdc
+            RelayHelper.shared.setForwardMessage(messageId: messageId) // TOOD: set message.* as data to the RelayHelper, make RelayHelper produce a draft
+            navigationController?.popViewControllers(viewsToPop: 2, animated: true) // TODO: xdc may be in profile, all media, whatnot, just popping 2 is wrong
 
         default:
             logger.debug("another method was called")