Skip to content

Commit

Permalink
fix: disable some features in dialog mode
Browse files Browse the repository at this point in the history
Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy authored and backportbot[bot] committed Nov 25, 2024
1 parent 5e2b9b1 commit 3dc1117
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@

<!-- Input area -->
<div class="new-message-form__input">
<NewMessageAbsenceInfo v-if="!upload && userAbsence"
<NewMessageAbsenceInfo v-if="!dialog && userAbsence"
:user-absence="userAbsence"
:display-name="conversation.displayName" />

<NewMessageChatSummary v-if="showChatSummary" />
<NewMessageChatSummary v-if="!dialog && showChatSummary" />

<div class="new-message-form__emoji-picker">
<NcEmojiPicker v-if="!disabled"
Expand Down Expand Up @@ -522,6 +522,8 @@ export default {
text(newValue) {
if (this.currentUploadId && !this.upload) {
return
} else if (this.dialog && this.broadcast) {
return
}
this.debouncedUpdateChatInput(newValue)
},
Expand Down Expand Up @@ -953,7 +955,7 @@ export default {
},

handleEditLastMessage(event) {
if (!this.canEditMessage || this.text || this.upload || this.broadcast || this.isRecordingAudio) {
if (!this.canEditMessage || this.text || this.dialog || this.isRecordingAudio) {
return
}

Expand Down

0 comments on commit 3dc1117

Please sign in to comment.