Commit e31c5f93 authored by armin's avatar armin

Merge branch 'fixFileDownloadLocation' into 'master'

fix filedownload location

Closes #140

See merge request !153
parents b3852dc9 9dd68a7a
Pipeline #608 passed with stage
in 1 minute and 55 seconds
Subproject commit 1df588c179a0316354700111d66c119ccfe8dd34
Subproject commit cafe3711f2255af13952ec33484d51940982db1e
......@@ -48,6 +48,7 @@ Item {
font.family: Fonts.fontello.name
height: 15
onPressed: {
console.log(model.linkurl);
rocketChatController.getFileRessource(model.linkurl,"document")
}
StdImageHighDPI{
......@@ -70,6 +71,7 @@ Item {
onFileRessourceProcessed: {
if (url === model.linkurl) {
console.log(pathPrefix + path)
if(Qt.platform.os == "ios"){
rocketChatController.openFileExternally(pathPrefix + path)
}else{
......
......@@ -55,7 +55,7 @@ Item {
font.family: Fonts.fontello.name
height: 15
onPressed: {
rocketChatController.getFileRessource(model.linkurl,"document")
rocketChatController.getFileRessource(model.linkurl,"image")
}
StdImageHighDPI{
anchors.centerIn: parent
......@@ -166,6 +166,7 @@ Item {
}else if(Qt.platform.os == "ios"){
rocketChatController.openFileExternally(pathPrefix + path)
} else {
console.log(pathPrefix + path)
Qt.openUrlExternally(pathPrefix + path)
}
}
......
......@@ -155,7 +155,7 @@ Item {
anchors.right: parent.right
height: 15
onPressed: {
rocketChatController.getFileRessource(model.linkurl,"audio")
rocketChatController.getFileRessource(model.linkurl,"video")
}
StdImageHighDPI{
anchors.centerIn: parent
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment