Fixed not showing issue for the profile thumbnail in the suggestion list. Fixes #1916
This commit is contained in:
parent
4a1c497a08
commit
6e2062ec6f
|
@ -65,11 +65,12 @@ StackLayout {
|
||||||
for (let i = 0; i < len; i++) {
|
for (let i = 0; i < len; i++) {
|
||||||
const contactAddr = chatsModel.suggestionList.rowData(i, "address");
|
const contactAddr = chatsModel.suggestionList.rowData(i, "address");
|
||||||
if(idMap[contactAddr]) continue;
|
if(idMap[contactAddr]) continue;
|
||||||
|
const contactIndex = profileModel.contacts.list.getContactIndexByPubkey(chatsModel.suggestionList.rowData(i, "address"));
|
||||||
chatInput.suggestionsList.append({
|
chatInput.suggestionsList.append({
|
||||||
alias: chatsModel.suggestionList.rowData(i, "alias"),
|
alias: chatsModel.suggestionList.rowData(i, "alias"),
|
||||||
ensName: chatsModel.suggestionList.rowData(i, "ensName"),
|
ensName: chatsModel.suggestionList.rowData(i, "ensName"),
|
||||||
address: contactAddr,
|
address: contactAddr,
|
||||||
identicon: chatsModel.suggestionList.rowData(i, "identicon"),
|
identicon: profileModel.contacts.list.rowData(contactIndex, "thumbnailImage"),
|
||||||
localNickname: chatsModel.suggestionList.rowData(i, "localNickname")
|
localNickname: chatsModel.suggestionList.rowData(i, "localNickname")
|
||||||
});
|
});
|
||||||
idMap[contactAddr] = true;
|
idMap[contactAddr] = true;
|
||||||
|
|
|
@ -118,6 +118,8 @@ Rectangle {
|
||||||
|
|
||||||
StatusImageIdenticon {
|
StatusImageIdenticon {
|
||||||
id: accountImage
|
id: accountImage
|
||||||
|
width: 32
|
||||||
|
height: 32
|
||||||
anchors.verticalCenter: parent.verticalCenter
|
anchors.verticalCenter: parent.verticalCenter
|
||||||
anchors.left: parent.left
|
anchors.left: parent.left
|
||||||
anchors.leftMargin: Style.current.smallPadding
|
anchors.leftMargin: Style.current.smallPadding
|
||||||
|
|
Loading…
Reference in New Issue