Init file sending.
This commit is contained in:
19
qml/component/AudioBubble.qml
Normal file
19
qml/component/AudioBubble.qml
Normal file
@@ -0,0 +1,19 @@
|
||||
import QtQuick 2.9
|
||||
import QtQuick.Controls 2.2
|
||||
import QtMultimedia 5.8
|
||||
|
||||
AvatarContainer {
|
||||
Button {
|
||||
id: downloadButton
|
||||
|
||||
text: content.body
|
||||
highlighted: !sentByMe
|
||||
flat: true
|
||||
|
||||
onClicked: downloadable.downloadAndOpen()
|
||||
|
||||
Audio {
|
||||
audioRole: Audio.VoiceCommunicationRole
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -154,6 +154,7 @@ Item {
|
||||
currentRoom.uploadFile(fileDialog.fileUrl, fileDialog.fileUrl)
|
||||
currentRoom.fileTransferCompleted.connect(function(id, localFile, mxcUrl) {
|
||||
console.log("File transferred: " + id + ":" + mxcUrl)
|
||||
matriqueController.postFile(currentRoom, localFile, mxcUrl)
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user