Solve crash bug with toolbar loader when pop push a chat view, loading AvatarOrColorHash from toolbar

This commit is contained in:
Angela Mazzurco 2017-07-04 17:20:42 +02:00
parent 80cc1b4520
commit 8ebd0f770f
2 changed files with 26 additions and 18 deletions

View file

@ -65,22 +65,8 @@ Item
{
toolBar.state = "CHATVIEW"
gxsInfo= ChatCache.lastMessageCache.getGxsFromChatId(chatView.chatId)
toolBar.gxsSource = gxsInfo.gxs
toolBar.titleText = gxsInfo.name
toolBar.loaderSource = userHash
}
Component
{
id: userHash
AvatarOrColorHash
{
id: colorHash
gxs_id: gxsInfo.gxs
height: toolBar.height - 4
anchors.leftMargin: 2
}
}