Skip to content

Commit

Permalink
fix(@desktop/chat): Hide quick actions panel in non-joined chats
Browse files Browse the repository at this point in the history
  • Loading branch information
mprakhov committed Nov 29, 2022
1 parent dd1caf7 commit e8e2c02
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ui/imports/shared/views/chat/MessageView.qml
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ Loader {
isRightClickOnImage = false,
imageSource = "") {

if (placeholderMessage || activityCenterMessage) {
if (placeholderMessage || activityCenterMessage ||
!(root.rootStore.mainModuleInst.activeSection.joined || isProfileClick)) {
return
}

Expand Down Expand Up @@ -475,7 +476,9 @@ Loader {
root.placeholderMessage ||
root.activityCenterMessage ||
root.isInPinnedPopup ||
root.editModeOn
root.editModeOn ||
!root.rootStore.mainModuleInst.activeSection.joined

hideMessage: d.isSingleImage && d.unfurledLinksCount === 1

overrideBackground: root.activityCenterMessage || root.placeholderMessage
Expand Down

0 comments on commit e8e2c02

Please sign in to comment.