Skip to content

Commit

Permalink
fix(federation): disable call button and message input if proxy hash …
Browse files Browse the repository at this point in the history
…is dirty

Signed-off-by: Maksim Sukharev <antreesy.web@gmail.com>
  • Loading branch information
Antreesy committed Aug 1, 2024
1 parent 3cafd5e commit 3d04573
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/NewMessage/NewMessage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ import { searchPossibleMentions } from '../../services/mentionsService.js'
import { useBreakoutRoomsStore } from '../../stores/breakoutRooms.ts'
import { useChatExtrasStore } from '../../stores/chatExtras.js'
import { useSettingsStore } from '../../stores/settings.js'
import { useTalkHashStore } from '../../stores/talkHash.js'
import { fetchClipboardContent } from '../../utils/clipboard.js'
import { isDarkTheme } from '../../utils/isDarkTheme.js'
import { parseSpecialSymbols } from '../../utils/textParse.ts'
Expand Down Expand Up @@ -299,6 +300,7 @@ export default {
breakoutRoomsStore: useBreakoutRoomsStore(),
chatExtrasStore: useChatExtrasStore(),
settingsStore: useSettingsStore(),
talkHashStore: useTalkHashStore(),
supportTypingStatus,
}
},
Expand Down Expand Up @@ -338,6 +340,7 @@ export default {
disabled() {
return this.isReadOnly || this.noChatPermission || !this.currentConversationIsJoined || this.isRecordingAudio
|| this.talkHashStore.isNextcloudTalkHashDirty || this.talkHashStore.isNextcloudTalkProxyHashDirty[this.token]
},
disabledEdit() {
Expand Down
1 change: 1 addition & 0 deletions src/components/TopBar/CallButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,7 @@ export default {
},
isNextcloudTalkHashDirty() {
return this.talkHashStore.isNextcloudTalkHashDirty
|| this.talkHashStore.isNextcloudTalkProxyHashDirty[this.token]
},
container() {
return this.$store.getters.getMainContainerSelector()
Expand Down

0 comments on commit 3d04573

Please sign in to comment.