Browse Source

Add refresh after Mailbox

v0.17
Dibya 1 year ago
parent
commit
ede5e285f6
  1. 3
      GME Remit/Modules/RemittanceModules/OverseasModules/TermsAndCondition/User Interface/View/TermsAndConditionViewController.swift
  2. 1
      GME Remit/Modules/RemittanceModules/TransactionHistoryModules/MessageCompose/Application Logic/Interactor/MessageComposeInteractor.swift
  3. 1
      GME Remit/Modules/RemittanceModules/TransactionHistoryModules/MessageCompose/User Interface/View/MessageComposeViewController.swift

3
GME Remit/Modules/RemittanceModules/OverseasModules/TermsAndCondition/User Interface/View/TermsAndConditionViewController.swift

@ -163,7 +163,6 @@ extension TermsAndConditionViewController: TermsAndConditionViewInterface {
okTitle: "yes_text".localized(), okTitle: "yes_text".localized(),
cancelTitle: "no_text".localized(), cancelTitle: "no_text".localized(),
okAction: { [weak self] in guard let `self` = self else { return } okAction: { [weak self] in guard let `self` = self else { return }
self.dismiss(animated: true) { [weak self] in guard let `self` = self else { return }
// self.delegate?.setupRecieientForTermsVC( // self.delegate?.setupRecieientForTermsVC(
// self, // self,
// didSelectRecipientID: self.reciepient?.receiverID ?? "" // didSelectRecipientID: self.reciepient?.receiverID ?? ""
@ -176,7 +175,7 @@ extension TermsAndConditionViewController: TermsAndConditionViewInterface {
self.presenter?.gotoSendMoney(recipient, paymentMethod) self.presenter?.gotoSendMoney(recipient, paymentMethod)
} }
}
}, },
cancelAction: { [weak self] in guard let `self` = self else { return } cancelAction: { [weak self] in guard let `self` = self else { return }
self.dismiss(animated: true) { [weak self] in guard let `self` = self else { return } self.dismiss(animated: true) { [weak self] in guard let `self` = self else { return }

1
GME Remit/Modules/RemittanceModules/TransactionHistoryModules/MessageCompose/Application Logic/Interactor/MessageComposeInteractor.swift

@ -65,6 +65,7 @@ extension MessageComposeInteractor: MessageComposeInteractorInput {
"subject": subject, "subject": subject,
"UserId": Utility.getMyUserName() "UserId": Utility.getMyUserName()
] ]
self.service.pendingTransactionRequest(param: param, success: { (message) in self.service.pendingTransactionRequest(param: param, success: { (message) in
self.output?.show(model: message) self.output?.show(model: message)
}, failure: { (error) in }, failure: { (error) in

1
GME Remit/Modules/RemittanceModules/TransactionHistoryModules/MessageCompose/User Interface/View/MessageComposeViewController.swift

@ -129,6 +129,7 @@ extension MessageComposeViewController: MessageComposeViewInterface {
message: model.message, message: model.message,
title: "success_text".localized() title: "success_text".localized()
) { ) {
NotificationCenter.default.post(name: Notification.Name("RefreshTransactionData"), object: nil)
self.presenter?.dismiss() self.presenter?.dismiss()
} }
} }

Loading…
Cancel
Save