ソースを参照

rename SendingController's callback

cyberta 5 年 前
コミット
29269c2ef2
2 ファイル変更3 行追加3 行削除
  1. 2 2
      DcShare/SendingController.swift
  2. 1 1
      DcShare/ShareViewController.swift

+ 2 - 2
DcShare/SendingController.swift

@@ -2,7 +2,7 @@ import UIKit
 import DcCore
 
 protocol SendingControllerDelegate: class {
-    func onSendingAttemptStopped()
+    func onSendingAttemptFinished()
 }
 
 class SendingController: UIViewController {
@@ -72,7 +72,7 @@ class SendingController: UIViewController {
         DispatchQueue.global(qos: .utility).async {
             self.dcMsg.sendInChat(id: self.chatId)
             self.dcContext.performSmtpJobs()
-            self.delegate?.onSendingAttemptStopped()
+            self.delegate?.onSendingAttemptFinished()
         }
     }
 }

+ 1 - 1
DcShare/ShareViewController.swift

@@ -128,7 +128,7 @@ extension ShareViewController: ChatListDelegate {
 }
 
 extension ShareViewController: SendingControllerDelegate {
-    func onSendingAttemptStopped() {
+    func onSendingAttemptFinished() {
         DispatchQueue.main.async {
             self.popConfigurationViewController()
             self.quit()