Only expect chat partner information in private chats
This commit is contained in:
parent
0b6a2db2f1
commit
9bcc9ab690
1 changed files with 2 additions and 2 deletions
|
@ -563,12 +563,12 @@ Page {
|
|||
}
|
||||
}
|
||||
onUserFullInfoReceived: {
|
||||
if(userFullInfo["@extra"] === chatPartnerInformation.id.toString()) {
|
||||
if ((isPrivateChat || isSecretChat) && userFullInfo["@extra"] === chatPartnerInformation.id.toString()) {
|
||||
chatPage.botInformation = userFullInfo;
|
||||
}
|
||||
}
|
||||
onUserFullInfoUpdated: {
|
||||
if(userId === chatPartnerInformation.id) {
|
||||
if ((isPrivateChat || isSecretChat) && userId === chatPartnerInformation.id) {
|
||||
chatPage.botInformation = userFullInfo;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue