Only expect chat partner information in private chats

This commit is contained in:
Sebastian Wolf 2023-11-18 15:35:02 +01:00 committed by Denis Fedoseev
parent 0b6a2db2f1
commit 9bcc9ab690

View file

@ -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;
}
}