Avoid openning a conversation on sip url and copy the URL into the smartsearchbar.

This commit is contained in:
Julien Wadel 2022-07-01 18:16:31 +02:00
parent da46ea004b
commit e327d0bf3a
3 changed files with 5 additions and 9 deletions

View file

@ -20,7 +20,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## 4.4.7 - 2022-07-01
### Fixes
Update SDK to prepare video conference and improve DTLS handshakes.
- When receiving a SIP URL, copy it in Smart search bar instead of openning conversation.
- Update SDK to prepare video conference and improve DTLS handshakes.
## 4.4.6 - 2022-06-14

View file

@ -28,6 +28,7 @@
UrlHandlers::UrlHandlers (QObject *parent) : QObject(parent) {
QDesktopServices::setUrlHandler("sip", this, "handleSip");
QDesktopServices::setUrlHandler("sips", this, "handleSip");
}
void UrlHandlers::handleSip (const QUrl &url) {

View file

@ -367,13 +367,7 @@ ApplicationWindow {
target: UrlHandlers
onSip: {
console.log("Change conversation from url handler")
window.setView('Conversation', {
peerAddress: sipAddress,
localAddress: AccountSettingsModel.sipAddress,
fullPeerAddress: sipAddress,
fullLocalAddress: AccountSettingsModel.fullSipAddress
})
}
mainSearchBar.text = sipAddress
}
}
}