Change how do you put chat tittle saving chat name into variable on cache GXS info

This commit is contained in:
Angela Mazzurco 2017-06-12 15:44:07 +02:00
parent ba72332ed8
commit ea8d03bc10
4 changed files with 18 additions and 6 deletions

View file

@ -52,7 +52,12 @@ Item
} )
}
Component.onCompleted: refreshData()
Component.onCompleted: {
refreshData()
toolBar.state = "CHATVIEW"
var gxs = ChatCache.lastMessageCache.getGxsFromChatId(chatView.chatId)
toolBar.titleText = gxs.name
}
onFocusChanged: focus && refreshData()
JSONListModel
@ -256,6 +261,7 @@ Item
}
]
}
}
}