fix(@desktop/chat): Hide quick actions panel in non-joined chats

This commit is contained in:
mprakhov 2022-11-29 11:04:47 +02:00 committed by Mykhailo Prakhov
parent dd1caf7a48
commit e8e2c022ca
1 changed files with 5 additions and 2 deletions

View File

@ -126,7 +126,8 @@ Loader {
isRightClickOnImage = false, isRightClickOnImage = false,
imageSource = "") { imageSource = "") {
if (placeholderMessage || activityCenterMessage) { if (placeholderMessage || activityCenterMessage ||
!(root.rootStore.mainModuleInst.activeSection.joined || isProfileClick)) {
return return
} }
@ -475,7 +476,9 @@ Loader {
root.placeholderMessage || root.placeholderMessage ||
root.activityCenterMessage || root.activityCenterMessage ||
root.isInPinnedPopup || root.isInPinnedPopup ||
root.editModeOn root.editModeOn ||
!root.rootStore.mainModuleInst.activeSection.joined
hideMessage: d.isSingleImage && d.unfurledLinksCount === 1 hideMessage: d.isSingleImage && d.unfurledLinksCount === 1
overrideBackground: root.activityCenterMessage || root.placeholderMessage overrideBackground: root.activityCenterMessage || root.placeholderMessage