Only expect chat partner information in private chats
This commit is contained in:
parent
1ee8d134bc
commit
2b51405743
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