mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Open chat when click notification of one chat new message
This commit is contained in:
parent
c86b7c79ae
commit
e39b310c78
2 changed files with 23 additions and 2 deletions
|
@ -481,9 +481,26 @@ ApplicationWindow
|
|||
|
||||
function openContactsViewLinkHandler (uriStr)
|
||||
{
|
||||
console.log("openContactsViewLinkHandler(uriStr)" , uriStr)
|
||||
if(coreReady)
|
||||
{
|
||||
stackView.push("qrc:/Contacts.qml" )
|
||||
var uri = new UriJs.URI(uriStr)
|
||||
var query = UriJs.URI.parseQuery(uri.search());
|
||||
if (query.gxsId && query.name)
|
||||
{
|
||||
|
||||
ChatCache.chatHelper.startDistantChat(ChatCache.contactsCache.own.gxs_id,
|
||||
query.gxsId,
|
||||
query.name,
|
||||
function (chatId)
|
||||
{
|
||||
stackView.push("qrc:/ChatView.qml", {'chatId': chatId})
|
||||
})
|
||||
}
|
||||
else
|
||||
{
|
||||
stackView.push("qrc:/Contacts.qml" )
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue