implement data transfer on onboarding
This commit is contained in:
@@ -11,6 +11,8 @@ import ChatModel from "../../Model/Chat/chatModel";
|
||||
|
||||
export default class FileTransferViewModel extends Context {
|
||||
// state
|
||||
exitReception: ()=>void|undefined = undefined;
|
||||
|
||||
presentedModal: React.State<FileTransferModals | undefined> =
|
||||
new React.State<any>(undefined);
|
||||
|
||||
@@ -216,6 +218,15 @@ export default class FileTransferViewModel extends Context {
|
||||
this.coreViewModel.fileTransferModel.prepareToSend();
|
||||
};
|
||||
|
||||
correctTransferData = (): void => {
|
||||
if (this.exitReception != undefined) {
|
||||
this.presentedModal.value = undefined;
|
||||
this.exitReception();
|
||||
return;
|
||||
}
|
||||
this.showTransferDataInputModal()
|
||||
}
|
||||
|
||||
initiateTransfer = (): void => {
|
||||
this.presentedModal.value = FileTransferModals.TransferDisplay;
|
||||
this.didNotFinishSending.value = true;
|
||||
|
||||
Reference in New Issue
Block a user