mirror of
https://github.com/Nheko-Reborn/nheko.git
synced 2024-12-01 14:58:47 +03:00
Fix wrong tran_id issue
This commit is contained in:
parent
898be090af
commit
e70b4e4268
3 changed files with 13 additions and 12 deletions
|
@ -118,7 +118,7 @@ Page {
|
||||||
deviceVerificationList.add(flow.tranId);
|
deviceVerificationList.add(flow.tranId);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
var dialog = deviceVerificationDialog.createObject(timelineRoot, {flow: flow,isRequest = isRequest});
|
var dialog = deviceVerificationDialog.createObject(timelineRoot, {flow: flow,isRequest: isRequest,tran_id: flow.tranId});
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -94,7 +94,7 @@ ApplicationWindow{
|
||||||
newFlow.userId = profile.userid;
|
newFlow.userId = profile.userid;
|
||||||
newFlow.sender = true;
|
newFlow.sender = true;
|
||||||
deviceVerificationList.add(newFlow.tranId);
|
deviceVerificationList.add(newFlow.tranId);
|
||||||
var dialog = deviceVerificationDialog.createObject(userProfileDialog, {flow: newFlow,isRequest: true});
|
var dialog = deviceVerificationDialog.createObject(userProfileDialog, {flow: newFlow,isRequest: true,tran_id: newFlow.tranId});
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -206,7 +206,7 @@ ApplicationWindow{
|
||||||
deviceVerificationList.updateProfile(newFlow.userId);
|
deviceVerificationList.updateProfile(newFlow.userId);
|
||||||
}else{
|
}else{
|
||||||
deviceVerificationList.add(newFlow.tranId);
|
deviceVerificationList.add(newFlow.tranId);
|
||||||
var dialog = deviceVerificationDialog.createObject(userProfileDialog, {flow: newFlow,isRequest:false});
|
var dialog = deviceVerificationDialog.createObject(userProfileDialog, {flow: newFlow,isRequest:false,tran_id: newFlow.tranId});
|
||||||
dialog.show();
|
dialog.show();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ ApplicationWindow {
|
||||||
|
|
||||||
property var flow
|
property var flow
|
||||||
property bool isRequest
|
property bool isRequest
|
||||||
|
property var tran_id
|
||||||
|
|
||||||
Connections {
|
Connections {
|
||||||
target: flow
|
target: flow
|
||||||
|
@ -82,6 +83,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
|
deviceVerificationList.remove(tran_id);
|
||||||
delete flow;
|
delete flow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -141,7 +143,7 @@ ApplicationWindow {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
flow.cancelVerification(DeviceVerificationFlow.User);
|
flow.cancelVerification(DeviceVerificationFlow.User);
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
@ -205,7 +207,7 @@ ApplicationWindow {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
flow.cancelVerification(DeviceVerificationFlow.User);
|
flow.cancelVerification(DeviceVerificationFlow.User);
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
@ -267,7 +269,7 @@ ApplicationWindow {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
@ -426,7 +428,7 @@ ApplicationWindow {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
flow.cancelVerification(DeviceVerificationFlow.MismatchedSAS);
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
@ -487,8 +489,7 @@ ApplicationWindow {
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
flow.cancelVerification(DeviceVerificationFlow.User);
|
flow.cancelVerification(DeviceVerificationFlow.User);
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
delete flow;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Item {
|
Item {
|
||||||
|
@ -534,7 +535,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close()
|
dialog.close()
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
delete flow;
|
delete flow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -578,7 +579,7 @@ ApplicationWindow {
|
||||||
}
|
}
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close();
|
dialog.close();
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -622,7 +623,7 @@ ApplicationWindow {
|
||||||
text: qsTr("Close")
|
text: qsTr("Close")
|
||||||
onClicked: {
|
onClicked: {
|
||||||
dialog.close()
|
dialog.close()
|
||||||
deviceVerificationList.remove(flow.tranId);
|
deviceVerificationList.remove(tran_id);
|
||||||
delete flow;
|
delete flow;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue