Fixed not showing issue for the profile thumbnail in the suggestion list. Fixes #1916

This commit is contained in:
ace-smart 2021-03-04 18:39:50 +04:00 committed by Iuri Matias
parent 4a1c497a08
commit 6e2062ec6f
2 changed files with 4 additions and 1 deletions

View File

@ -65,11 +65,12 @@ StackLayout {
for (let i = 0; i < len; i++) {
const contactAddr = chatsModel.suggestionList.rowData(i, "address");
if(idMap[contactAddr]) continue;
const contactIndex = profileModel.contacts.list.getContactIndexByPubkey(chatsModel.suggestionList.rowData(i, "address"));
chatInput.suggestionsList.append({
alias: chatsModel.suggestionList.rowData(i, "alias"),
ensName: chatsModel.suggestionList.rowData(i, "ensName"),
address: contactAddr,
identicon: chatsModel.suggestionList.rowData(i, "identicon"),
identicon: profileModel.contacts.list.rowData(contactIndex, "thumbnailImage"),
localNickname: chatsModel.suggestionList.rowData(i, "localNickname")
});
idMap[contactAddr] = true;

View File

@ -118,6 +118,8 @@ Rectangle {
StatusImageIdenticon {
id: accountImage
width: 32
height: 32
anchors.verticalCenter: parent.verticalCenter
anchors.left: parent.left
anchors.leftMargin: Style.current.smallPadding