|
|
@ -116,53 +116,43 @@ Page { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
Connections { |
|
|
|
target: TimelineManager |
|
|
|
function onNewDeviceVerificationRequest(flow) { |
|
|
|
onNewDeviceVerificationRequest: { |
|
|
|
|
|
|
|
var dialog = deviceVerificationDialog.createObject(timelineRoot, { |
|
|
|
var dialog = deviceVerificationDialog.createObject(timelineRoot, { |
|
|
|
"flow": flow |
|
|
|
"flow": flow |
|
|
|
}); |
|
|
|
}); |
|
|
|
dialog.show(); |
|
|
|
dialog.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
onOpenProfile: { |
|
|
|
|
|
|
|
|
|
|
|
function onOpenProfile(profile) { |
|
|
|
var userProfile = userProfileComponent.createObject(timelineRoot, { |
|
|
|
var userProfile = userProfileComponent.createObject(timelineRoot, { |
|
|
|
"profile": profile |
|
|
|
"profile": profile |
|
|
|
}); |
|
|
|
}); |
|
|
|
userProfile.show(); |
|
|
|
userProfile.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
onShowImagePackSettings: { |
|
|
|
|
|
|
|
|
|
|
|
function onShowImagePackSettings(packlist) { |
|
|
|
var packSet = packSettingsComponent.createObject(timelineRoot, { |
|
|
|
var packSet = packSettingsComponent.createObject(timelineRoot, { |
|
|
|
"packlist": packlist |
|
|
|
"packlist": packlist |
|
|
|
}); |
|
|
|
}); |
|
|
|
packSet.show(); |
|
|
|
packSet.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
function onOpenRoomMembersDialog(members) { |
|
|
|
target: CallManager |
|
|
|
|
|
|
|
onNewInviteState: { |
|
|
|
|
|
|
|
if (CallManager.haveCallInvite && Settings.mobileMode) { |
|
|
|
|
|
|
|
var dialog = mobileCallInviteDialog.createObject(msgView); |
|
|
|
|
|
|
|
dialog.open(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
|
|
|
|
target: TimelineManager |
|
|
|
|
|
|
|
onOpenRoomMembersDialog: { |
|
|
|
|
|
|
|
var membersDialog = roomMembersComponent.createObject(timelineRoot, { |
|
|
|
var membersDialog = roomMembersComponent.createObject(timelineRoot, { |
|
|
|
"members": members, |
|
|
|
"members": members, |
|
|
|
"roomName": Rooms.currentRoom.roomName |
|
|
|
"roomName": Rooms.currentRoom.roomName |
|
|
|
}); |
|
|
|
}); |
|
|
|
membersDialog.show(); |
|
|
|
membersDialog.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
onOpenRoomSettingsDialog: { |
|
|
|
|
|
|
|
|
|
|
|
function onOpenRoomSettingsDialog(settings) { |
|
|
|
var roomSettings = roomSettingsComponent.createObject(timelineRoot, { |
|
|
|
var roomSettings = roomSettingsComponent.createObject(timelineRoot, { |
|
|
|
"roomSettings": settings |
|
|
|
"roomSettings": settings |
|
|
|
}); |
|
|
|
}); |
|
|
|
roomSettings.show(); |
|
|
|
roomSettings.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
onOpenInviteUsersDialog: { |
|
|
|
|
|
|
|
|
|
|
|
function onOpenInviteUsersDialog(invitees) { |
|
|
|
var dialog = inviteDialog.createObject(timelineRoot, { |
|
|
|
var dialog = inviteDialog.createObject(timelineRoot, { |
|
|
|
"roomId": Rooms.currentRoom.roomId, |
|
|
|
"roomId": Rooms.currentRoom.roomId, |
|
|
|
"plainRoomName": Rooms.currentRoom.plainRoomName, |
|
|
|
"plainRoomName": Rooms.currentRoom.plainRoomName, |
|
|
@ -170,6 +160,19 @@ Page { |
|
|
|
}); |
|
|
|
}); |
|
|
|
dialog.show(); |
|
|
|
dialog.show(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target: TimelineManager |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Connections { |
|
|
|
|
|
|
|
function onNewInviteState() { |
|
|
|
|
|
|
|
if (CallManager.haveCallInvite && Settings.mobileMode) { |
|
|
|
|
|
|
|
var dialog = mobileCallInviteDialog.createObject(msgView); |
|
|
|
|
|
|
|
dialog.open(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
target: CallManager |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
ChatPage { |
|
|
|
ChatPage { |
|
|
|