Only expect chat partner information in private chats

This commit is contained in:
Sebastian Wolf 2023-11-18 15:35:02 +01:00
parent 1ee8d134bc
commit 2b51405743
No known key found for this signature in database
GPG key ID: CEA9522B5F38A90A

View file

@ -563,12 +563,12 @@ Page {
} }
} }
onUserFullInfoReceived: { onUserFullInfoReceived: {
if(userFullInfo["@extra"] === chatPartnerInformation.id.toString()) { if ((isPrivateChat || isSecretChat) && userFullInfo["@extra"] === chatPartnerInformation.id.toString()) {
chatPage.botInformation = userFullInfo; chatPage.botInformation = userFullInfo;
} }
} }
onUserFullInfoUpdated: { onUserFullInfoUpdated: {
if(userId === chatPartnerInformation.id) { if ((isPrivateChat || isSecretChat) && userId === chatPartnerInformation.id) {
chatPage.botInformation = userFullInfo; chatPage.botInformation = userFullInfo;
} }
} }