Skip to content

Commit

Permalink
fix(pinia-stores): update channelType property to type for consistenc…
Browse files Browse the repository at this point in the history
…y and improved semantics in store files.
  • Loading branch information
Ro0t-set committed May 21, 2024
1 parent a1f0098 commit 663ad41
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions frontend-service/src/main/vue/stores/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ export const useAppStore = defineStore(
() =>
(selectedDirect.value !== null && !inDirectCall.value) ||
(selectedChannel.value !== null &&
selectedChannel.value.channelType !== "multimedia")
selectedChannel.value.type !== "multimedia")
);

const isVideoSection = computed(
() =>
(selectedChannel.value !== null &&
selectedChannel.value.channelType == "multimedia") ||
selectedChannel.value.type == "multimedia") ||
(selectedDirect.value !== null && inDirectCall.value)
);

Expand Down
2 changes: 1 addition & 1 deletion frontend-service/src/main/vue/stores/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export const useMessageStore = defineStore("message", () => {
> = computed(() => {
if (
appStore.selectedChannel !== null &&
appStore.selectedChannel.channelType !== "multimedia"
appStore.selectedChannel.type !== "multimedia"
)
return ContentArea.Channel;
if (appStore.selectedDirect !== null) return ContentArea.Direct;
Expand Down

0 comments on commit 663ad41

Please sign in to comment.